[ 
https://issues.apache.org/jira/browse/CAMEL-8058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216121#comment-14216121
 ] 

David J. M. Karlsen commented on CAMEL-8058:
--------------------------------------------

AFAIK the system property has been there for some time (e.g. pre 1.7).
But the method lineSeparator(): 
https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#lineSeparator-- 
is 1.7

> Use Java 7 api when possible
> ----------------------------
>
>                 Key: CAMEL-8058
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8058
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.15.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> We have some custom code that figures out the line terminator.
> But since Java 1.7 we can use
> System.getProperty("line.separator")
> There may be a few other spots with some code that can be replaced with apis 
> from java7 onwards.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to