Skip to content

Commit

Permalink
modify sample codes
Browse files Browse the repository at this point in the history
  • Loading branch information
benelog committed Jan 24, 2013
1 parent 45e5802 commit e1d33e1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

public final class MultilineStringUsage {

/**
<html>
<head/>
<body>
<p>
Hello<br/>
Multiline<br/>
World<br/>
</p>
</body>
</html>
*/
@Multiline private static String html;
public static void main(final String[] args) {
System.out.println(html);
}
/**
<html>
<head/>
<body>
<p>
Hello<br/>
Multiline<br/>
World<br/>
</p>
</body>
</html>
*/
@Multiline private static String html;

public static void main(final String[] args) {
System.out.println(html);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class MultilineStringTest {
/**
DELETE
FROM post
*/
@Multiline static String deleteFromPost;

*/
@Multiline final String deleteFromPost = null;
@Test
public void readMultilineString() {
System.out.println(deleteFromPost);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
@SupportedAnnotationTypes({"org.adrianwalker.multilinestring.Multiline"})
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public final class MultilineProcessor extends AbstractProcessor {
Processor delegator = null;
private Processor delegator = null;

@Override
public void init(final ProcessingEnvironment procEnv) {
super.init(procEnv);
String envClassName = procEnv.getClass().getName();
if (envClassName.contains("com.sun.tools")) {
delegator = new JavacMultilineProcessor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public void initInEcjEnv() throws IllegalArgumentException, IllegalAccessExcepti
assertThat(className,is("org.adrianwalker.multilinestring.EcjMultilineProcessor"));
}


private String extractFieldClassName(String fieldName) throws IllegalAccessException {
Field field = FieldUtils.getField(MultilineProcessor.class, fieldName, true);
Object fieldInstance = field.get(processor);
Expand Down

0 comments on commit e1d33e1

Please sign in to comment.