Mercurial > hg > monetdb-java
comparison src/main/java/nl/cwi/monetdb/jdbc/MonetSavepoint.java @ 297:bb273e9c7e09
Add "final" keyword to classes, method arguments and local variables where possible.
In Mapisocket.java replaced 4 log methods with 1 method with 2 extra parameters for more flexibility and less code.
Resolved javadoc warning for MonetSavepoint.java
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 08 Aug 2019 20:19:45 +0200 (2019-08-08) |
parents | c5efd6e661e5 |
children | 54137aeb1f92 |
comparison
equal
deleted
inserted
replaced
296:c5efd6e661e5 | 297:bb273e9c7e09 |
---|---|
40 /** The id of this Savepoint */ | 40 /** The id of this Savepoint */ |
41 private final int id; | 41 private final int id; |
42 | 42 |
43 /** | 43 /** |
44 * Creates a named MonetSavepoint object | 44 * Creates a named MonetSavepoint object |
45 * | |
46 * @param name of savepoint | |
47 * @throws IllegalArgumentException if no or empty name is given | |
45 */ | 48 */ |
46 public MonetSavepoint(final String name) throws IllegalArgumentException { | 49 public MonetSavepoint(final String name) throws IllegalArgumentException { |
47 if (name == null || name.isEmpty()) | 50 if (name == null || name.isEmpty()) |
48 throw new IllegalArgumentException("Missing savepoint name"); | 51 throw new IllegalArgumentException("Missing savepoint name"); |
49 | 52 |