Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
taprwiz committed Nov 19, 2015
1 parent 65b9ec9 commit 60387ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EventBus/src/de/greenrobot/event/SubscriberInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Data getSubscriberData() {

abstract protected Data createSubscriberData();

protected SubscriberMethod createSubscriberMethod(Class<?> subscriberClass, String methodName, Class<?> eventType,
protected static SubscriberMethod createSubscriberMethod(Class<?> subscriberClass, String methodName, Class<?> eventType,
ThreadMode threadMode, int priority, boolean sticky) {
try {
Method method = subscriberClass.getDeclaredMethod(methodName, eventType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ private void writeSources() {
}

private void writeNextEntry(BufferedWriter writer, String myPackage, TypeElement nextEntry) throws IOException {
String nextValue;
if (nextEntry != null) {
PackageElement nextPackageElement = getPackageElement(nextEntry);
String nextPackage = nextPackageElement.getQualifiedName().toString();
Expand All @@ -244,10 +245,11 @@ private void writeNextEntry(BufferedWriter writer, String myPackage, TypeElement
if (!myPackage.equals(nextPackage)) {
nextInfoClassName = nextPackage + "." + nextInfoClassName;
}
writer.write(" Class<?> next = " + nextInfoClassName + ".class" + ";\n");
nextValue = nextInfoClassName + ".class";
} else {
writer.write(" Class<?> next = null;\n");
nextValue = "null";
}
writer.write(" Class<?> next = " + nextValue + ";\n");
}

private String getClassString(TypeElement subscriberClass, String subscriberPackage) {
Expand Down

0 comments on commit 60387ce

Please sign in to comment.