dweiss commented on issue #14257:
URL: https://github.com/apache/lucene/issues/14257#issuecomment-2755128619

   Yeah. I'll take a look at that, interesting. Part of the problem is that 
different Java versions seem to be returning a different tokenization of those 
comment strings. Seems like something has changed even from this issue that I 
filed.
   
   https://github.com/google/google-java-format/issues/1153
   
   because when I run it now on this input:
   ```
   /// In the following indented code block, `@Override` is an annotation, and 
not a JavaDoc tag. You must not wrap this line. Even though it's long.
   ///
   ///     @Override
   ///     public void m() ...
   ///
   /// Likewise, in the following fenced code block, `@Override` is an 
annotation,
   /// and not a JavaDoc tag:
   ///
   /// ```
   /// @Override
   /// public void m() ...
   /// ```
   class Example {
       public static void main(String... args) {
        /// Foo, bar baz.
           System.out.println("Hello World!");
       }
   }
   ```
   
   it breaks the first long line incorrectly:
   ```
   /// In the following indented code block, `@Override` is an annotation, and 
not a JavaDoc tag. You
   // must not wrap this line. Even though it's long.
   ```
   
   I'll take a look in the evening. I don't think it should touch those /// 
lines at all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to