summaryrefslogtreecommitdiffstats
path: root/all
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2016-08-18 09:27:03 +0300
committerArtur Signell <artur@vaadin.com>2016-08-18 09:27:03 +0300
commit6d54d78944f6c3278eed3bb5e7ee19687ee5714e (patch)
tree8142f622e644e98bb3f8d19a7021fd125f9fed40 /all
parent7b899665d07be33f86015f71695868c70bc5a589 (diff)
downloadvaadin-framework-6d54d78944f6c3278eed3bb5e7ee19687ee5714e.tar.gz
vaadin-framework-6d54d78944f6c3278eed3bb5e7ee19687ee5714e.zip
Format using Eclipse Neon
Change-Id: I33f1cc33969ff74a95b1b8cc0f2add589be5aae0
Diffstat (limited to 'all')
-rw-r--r--all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java19
-rw-r--r--all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesTickets.java12
2 files changed, 15 insertions, 16 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..bef52514fb 100644
--- a/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java
+++ b/all/src/main/java/com/vaadin/buildhelpers/FetchReleaseNotesAuthors.java
@@ -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&amp;status=released&amp;@milestone@&amp;resolution=fixed&amp;col=id&amp;col=summary&amp;col=owner&amp;col=type&amp;col=priority&amp;col=component&amp;col=version&amp;col=bfptime&col=fv&amp;format=tab&amp;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);
}
}