From 4f3e81a8db20c780c3c4733627be1793fb17921a Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Fri, 9 Aug 2013 09:42:25 +0300 Subject: Use instead of {@code} for sample containing { and } (#12311) Change-Id: Ibbcc48e5557521bfe50e73e63ad723fe7da29c9b --- server/src/com/vaadin/annotations/JavaScript.java | 9 +++++---- server/src/com/vaadin/annotations/StyleSheet.java | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'server/src') diff --git a/server/src/com/vaadin/annotations/JavaScript.java b/server/src/com/vaadin/annotations/JavaScript.java index bdba70c095..3e9c46083d 100644 --- a/server/src/com/vaadin/annotations/JavaScript.java +++ b/server/src/com/vaadin/annotations/JavaScript.java @@ -44,10 +44,11 @@ import com.vaadin.server.ClientConnector; * file was loaded from a different folder. * *

- * Example: {@code @JavaScript( "http://host.com/file1.js", "file2.js"})} on the - * class com.example.MyConnector would load the file http://host.com/file1.js as - * is and file2.js from /com/example/file2.js on the server's classpath using - * the ClassLoader that was used to load com.example.MyConnector. + * Example: @JavaScript({"http://host.com/file1.js", "file2.js"}) + * on the class com.example.MyConnector would load the file + * http://host.com/file1.js as is and file2.js from /com/example/file2.js on the + * server's classpath using the ClassLoader that was used to load + * com.example.MyConnector. * * @author Vaadin Ltd * @since 7.0.0 diff --git a/server/src/com/vaadin/annotations/StyleSheet.java b/server/src/com/vaadin/annotations/StyleSheet.java index 6540633f8f..bc5b011873 100644 --- a/server/src/com/vaadin/annotations/StyleSheet.java +++ b/server/src/com/vaadin/annotations/StyleSheet.java @@ -49,8 +49,8 @@ import com.vaadin.server.ClientConnector; * VAADIN folder and vaadin:// you can publish stylesheets which use images or * other files with relative paths. *

- * Example: {@code @StyleSheet( "http://host.com/file1.css", "file2.css"})} on - * the class com.example.MyConnector would load the file + * Example: @StyleSheet({"http://host.com/file1.css", "file2.css"}) + * on the class com.example.MyConnector would load the file * http://host.com/file1.css as is and file2.css from /com/example/file2.css on * the server's classpath using the ClassLoader that was used to load * com.example.MyConnector. -- cgit v1.2.3