Skip to content

copy of benelog multiline string annotation from adrianwalker original code

Notifications You must be signed in to change notification settings

peterkittreilly/multiline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multiline

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

This project is a copy of https://github.com/benelog/multiline project, which originated from Adrian Walker's blog post ( http://www.adrianwalker.org/2011/12/java-multiline-string.html ).

This project removes eclipse support and removes the warning message.

It is a work in progress.

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
"""

About

copy of benelog multiline string annotation from adrianwalker original code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages