Skip to content

An implementation of multiline string literals in Java, using Javadoc comments. This project is originated from the blog post of Adrian Walker ( http://www.adrianwalker.org/2011/12/java-multiline-string.html ).

Notifications You must be signed in to change notification settings

juanmendes/multiline

 
 

Repository files navigation

Multiline

An implementation of multiline string literals in Java, using Javadoc comments.

This project is originated from Adrian Walker's blog post ( http://www.adrianwalker.org/2011/12/java-multiline-string.html ).

Usage

You can use multiline string literals with javadoc comments and '@Multiline' annotation.

For example,

/**
DELETE
FROM post
*/
@Multiline static String deleteFromPost;

is equivalent to the following expression in Groovy.

static String deleteFromPost = """
DELETE
FROM post
"""

Configuration

Tips

Release Notes

About

An implementation of multiline string literals in Java, using Javadoc comments. This project is originated from the blog post of Adrian Walker ( http://www.adrianwalker.org/2011/12/java-multiline-string.html ).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%