diff --git a/src/test/java/com/thoughtworks/qdox/JavaProjectBuilderTest.java b/src/test/java/com/thoughtworks/qdox/JavaProjectBuilderTest.java index c8de36ea..7533629d 100644 --- a/src/test/java/com/thoughtworks/qdox/JavaProjectBuilderTest.java +++ b/src/test/java/com/thoughtworks/qdox/JavaProjectBuilderTest.java @@ -1670,6 +1670,28 @@ public void testGetInterface() assertNotNull(clss); } + // Github #76 + public void testAtInComment() throws Exception + { + String source = "// Generated by the protocol buffer compiler. DO NOT EDIT!\n" + + "// source: model.proto\n" + + "\n" + + "public interface ModelOrBuilder {\n" + + " // @@protoc_insertion_point(interface_extends:Model)\n" + + "\n" + + " /**\n" + + " * string name = 1;\n" + + " */\n" + + " java.lang.String getName();\n" + + " /**\n" + + " * string name = 1;\n" + + " */\n" + + " String getNameBytes();\n" + + "}"; + JavaClass clazz = builder.addSource( new StringReader( source ) ).getClassByName( "ModelOrBuilder" ); + assertEquals( 0, clazz.getMethods().get( 0 ).getAnnotations().size() ); + } + public void testGenericEnumMethod() throws Exception { String source = "package java.time.temporal;\r\n" + "public final class IsoFields {\r\n" +