diff options
author | Artur Signell <artur@vaadin.com> | 2016-09-18 17:38:12 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2016-09-20 06:07:31 +0000 |
commit | c5c52684eb30d924cb75a632b526a0f879d5a33c (patch) | |
tree | 7025aff24585c55161a513102dedfc1a55c751bd /all | |
parent | 57a965251afdb5ee9ac1913a0101d854d8215aa6 (diff) | |
download | vaadin-framework-c5c52684eb30d924cb75a632b526a0f879d5a33c.tar.gz vaadin-framework-c5c52684eb30d924cb75a632b526a0f879d5a33c.zip |
Format Java files using Eclipse Neon and Vaadin settings
Using the same formatting in the 7.7 branch and the master branch
eases porting of fixes
Change-Id: I51b4693f2f120447702cf322ce4505608ad92987
Diffstat (limited to 'all')
-rw-r--r-- | all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java | 25 | ||||
-rw-r--r-- | all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java | 12 |
2 files changed, 18 insertions, 19 deletions
diff --git a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java index cd85ca6a3f..85dc87e756 100644 --- a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java +++ b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java @@ -1,12 +1,12 @@ /* * Copyright 2000-2014 Vaadin Ltd. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -27,18 +27,17 @@ import java.util.Properties; public class FetchReleaseNotesAuthors { private static final String template = "<li class=\"author\">@author@</li>"; - public static void main(String[] args) throws IOException, - InterruptedException { + public static void main(String[] args) + throws IOException, InterruptedException { Properties authorMap = new Properties(); String authorsFilename = FetchReleaseNotesAuthors.class.getPackage() - .getName().replace(".", "/") - + "/authormap.properties"; + .getName().replace(".", "/") + "/authormap.properties"; InputStream s = FetchReleaseNotesAuthors.class.getClassLoader() .getResourceAsStream(authorsFilename); if (s == null) { - System.err.println("Author mapping file " + authorsFilename - + " not found!"); + System.err.println( + "Author mapping file " + authorsFilename + " not found!"); } authorMap.load(s); @@ -53,8 +52,8 @@ public class FetchReleaseNotesAuthors { if (p.exitValue() != 0) { System.err.println("Exit code: " + p.exitValue()); } - BufferedReader b = new BufferedReader(new InputStreamReader( - p.getInputStream())); + BufferedReader b = new BufferedReader( + new InputStreamReader(p.getInputStream())); String line = ""; List<String> authors = new ArrayList<String>(); @@ -77,8 +76,8 @@ public class FetchReleaseNotesAuthors { private static String getPreviousVersion(String version) { String[] versionNumbers = version.split("\\."); if (versionNumbers.length > 4 || versionNumbers.length < 3) { - throw new IllegalArgumentException("Cannot parse version: " - + version); + throw new IllegalArgumentException( + "Cannot parse version: " + version); } int major = Integer.parseInt(versionNumbers[0]); int minor = Integer.parseInt(versionNumbers[1]); diff --git a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java index 0cd06890eb..a763934464 100644 --- a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java +++ b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java @@ -27,8 +27,7 @@ import org.apache.commons.io.IOUtils; public class FetchReleaseNotesTickets { private static final String queryURL = "https://dev.vaadin.com/query?status=pending-release&status=released&@milestone@&resolution=fixed&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&col=bfptime&col=fv&format=tab&order=id"; - private static final String ticketTemplate = "<tr>" - + "@badge@" // + private static final String ticketTemplate = "<tr>" + "@badge@" // + "<td class=\"ticket\"><a href=\"https://dev.vaadin.com/ticket/@ticket@\">#@ticket@</a></td>" // + "<td>@description@</td>" // + "</tr>"; // @@ -105,7 +104,8 @@ public class FetchReleaseNotesTickets { String badge = "<td></td>"; if (fields.length >= 8 && !fields[7].equals("")) { badge = "<td class=\"bfp\"><span class=\"bfp\">Priority</span></td>"; - } else if (fields.length >= 9 && fields[8].equalsIgnoreCase("true")) { + } else if (fields.length >= 9 + && fields[8].equalsIgnoreCase("true")) { badge = "<td class=\"fv\"><span class=\"fv\">Vote</span></td>"; } @@ -163,9 +163,9 @@ public class FetchReleaseNotesTickets { } private static void usage() { - System.err.println("Usage: " - + FetchReleaseNotesTickets.class.getSimpleName() - + " -Dvaadin.version=<version>"); + System.err.println( + "Usage: " + FetchReleaseNotesTickets.class.getSimpleName() + + " -Dvaadin.version=<version>"); System.exit(1); } } |