Skip to content

Commit

Permalink
Merge pull request google#285 from square/jw/java-writer-number-two
Browse files Browse the repository at this point in the history
Update JavaWriter to v2.0.1.
  • Loading branch information
JakeWharton committed Jun 18, 2013
2 parents f69d687 + 9f411af commit cb95092
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package dagger.internal.codegen;

import com.squareup.java.JavaWriter;
import com.squareup.javawriter.JavaWriter;
import java.io.Closeable;
import java.io.IOException;
import java.io.Writer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package dagger.internal.codegen;

import com.squareup.java.JavaWriter;
import com.squareup.javawriter.JavaWriter;
import dagger.MembersInjector;
import dagger.internal.Binding;
import dagger.internal.Linker;
Expand Down Expand Up @@ -239,7 +239,7 @@ private void writeInjectAdapter(TypeElement type, ExecutableElement constructor,
boolean dependent = injectMembers
|| ((constructor != null) && !constructor.getParameters().isEmpty());

writer.emitEndOfLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitSingleLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitPackage(packageName);
writer.emitEmptyLine();
writer.emitImports(getImports(dependent, injectMembers, constructor != null));
Expand Down Expand Up @@ -411,7 +411,7 @@ private void writeStaticInjection(TypeElement type, List<Element> fields) throws
.createSourceFile(adapterName, type);
JavaWriter writer = new JavaWriter(sourceFile.openWriter());

writer.emitEndOfLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitSingleLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitPackage(getPackage(type).getQualifiedName().toString());

writer.emitEmptyLine();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package dagger.internal.codegen;

import com.squareup.java.JavaWriter;
import com.squareup.javawriter.JavaWriter;
import dagger.Module;
import dagger.Provides;
import dagger.internal.Binding;
Expand Down Expand Up @@ -231,7 +231,7 @@ private void writeModuleAdapter(TypeElement type, Map<String, Object> module,
boolean multibindings = checkForMultibindings(providerMethods);
boolean providerMethodDependencies = checkForDependencies(providerMethods);

writer.emitEndOfLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitSingleLineComment(AdapterJavadocs.GENERATED_BY_DAGGER);
writer.emitPackage(getPackage(type).getQualifiedName().toString());
writer.emitEmptyLine();
writer.emitImports(
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<!-- Compilation -->
<java.version>1.6</java.version>
<javax.inject.version>1</javax.inject.version>
<javawriter.version>1.0.5</javawriter.version>
<javawriter.version>2.0.1</javawriter.version>

<!-- Test Dependencies -->
<junit.version>4.10</junit.version>
Expand Down

0 comments on commit cb95092

Please sign in to comment.