Commit Graph

3 Commits

Author SHA1 Message Date
6a5bde0f16 Travis CI should build plugins. (#143) 2016-05-06 23:05:01 +03:00
769dc5ec24 SPARK-1741: Improve on code structure (#138)
* SPARK-1741: String.indexOf() -> String.contaiins()

String.indexOf() expressions can be replaced with a call to the String.contains() method available in Java 5 and newer.

* SPARK-1741: Type argument -> diamond type

New expressions with type arguments can be replaced with diamond type <>.
Such <> syntax is not supported under Java 1.6 or earlier JVMs.

* SPARK-1741: Anonymous classes -> lambda

Anonymous classes without statecan be replaced with lambda expressions
Lambda syntax is not supported under Java 1.7 or earlier JVMs.

* SPARK-1741: StringBuffer -> StringBuilder

Variables declared as java.lang.StringBuffer may be more efficiently declared as java.lang.StringBuilder.
java.lang.StringBuilder is a non-thread-safe replacement for java.lang.StringBuffer, available in Java 5 and newer.

* SPARK-1741: Fix String equality checks (BUGFIX)

Using == or != to test for String equality, rather than the equals() method can lead to bugs, as
the former check for reference equality (while most often, value equality is intended).

* SPARK-1741: Simplify pointless boolean expressions

Simplify pointless or pointlessly complicated boolean expressions. Such expressions include anding with true,
oring with false, equality comparison with a boolean literal, or negation of a boolean literal.

* SPARK-1741: Remove redundant initializer

Removes variable initializer where the value is always overwritten with another assignment before the next variable read.

* SPARK-1741: Redundant class fields to local variable.

If all local usages of a field are preceded by assignments to that field, the field can be removed and its usages replaced with local variables.

* SPARK-1741: Remove unnecessary return statements

Return statements at the end of constructors and methods returning void may be safely removed.

* SPARK-1741: StringBuilder -> String

Reports any variables declared as or uses of java.lang.StringBuffer and java.lang.StringBuilder which can be
replaced with a single java.lang.String concatenation. Using a String concatenation makes the code shorter and
simpler. This inspection only reports when the resulting concatenation is at least as efficient or more
efficient than the original StringBuffer or StringBuilder use.

* SPARK-1741: Remove redundant casts.

Remvoing unnecessary cast expressions.

* SPARK-1741: Replace deprecated PacketIDFilter.

* SPARK-1741: Remove unused arguments.

* SPARK-1741: Delete unused imports.

* SPARK-1741: Fix automatic rename error

The Intellij automatic refactoring caused duplicate names to be used.

* SPARK-1741: getPacketID -> getStanzaId

* SPARK-1741: Ensure that Travis uses Java 8.

* SPARK-1741: Do not compile with Java 7 compatibility.
2016-05-06 21:16:02 +03:00
d276722b5c Add .travis.yml and build status 2014-05-27 13:34:08 +02:00