Skip to content

Commit 7d4e0be

Browse files
committed
Merge pull request #234 from martiner/jmi-trivial
trivial: fix javadoc formatting and warnings
2 parents 2d92fad + 044c3cd commit 7d4e0be

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

src/main/java/com/gooddata/GoodData.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public GoodData(String hostname, String login, String password, int port, GoodDa
165165
* @param password GoodData user's password
166166
* @param port GoodData Platform's API port (e.g. 443)
167167
* @param protocol GoodData Platform's API protocol (e.g. https)
168+
* @param settings additional settings
168169
*/
169170
protected GoodData(String hostname, String login, String password, int port, String protocol, GoodDataSettings settings) {
170171
notEmpty(hostname, "hostname");

src/main/java/com/gooddata/GoodDataSettings.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Gather various additional settings of {@link GoodData}. Can be passed to the {@link GoodData} constructor to tune up
99
* it's behaviour.
10-
* <p/>
10+
* <p>
1111
* Settings are applied only once at the beginning. Changing this bean after it's passed to {@link GoodData} has
1212
* no effect.
1313
*/
@@ -22,7 +22,7 @@ public class GoodDataSettings {
2222
/**
2323
* Set maximum number of connections used. This applies same for connections per host as for total connections.
2424
* (As we assume GoodData connects to single host).
25-
* <p/>
25+
* <p>
2626
* The default value is 20.
2727
*
2828
* @param maxConnections maximum number of connections used.
@@ -43,9 +43,9 @@ public int getMaxConnections() {
4343

4444
/**
4545
* Set timeout milliseconds until connection established.
46-
* <p/>
46+
* <p>
4747
* The default value is 10 seconds (10000 ms).
48-
* <p/>
48+
* <p>
4949
* Set to 0 for infinite.
5050
*
5151
* @param connectionTimeout connection timeout milliseconds
@@ -57,9 +57,9 @@ public void setConnectionTimeout(int connectionTimeout) {
5757

5858
/**
5959
* Set timeout seconds until connection established.
60-
* <p/>
60+
* <p>
6161
* The default value is 10 seconds.
62-
* <p/>
62+
* <p>
6363
* Set to 0 for infinite.
6464
*
6565
* @param connectionTimeout connection timeout seconds
@@ -79,9 +79,9 @@ public int getConnectionTimeout() {
7979

8080
/**
8181
* Set timeout in milliseconds used when requesting a connection from the connection manager.
82-
* <p/>
82+
* <p>
8383
* The default value is 10 seconds (10000 ms).
84-
* <p/>
84+
* <p>
8585
* Set to 0 for infinite.
8686
*
8787
* @param connectionRequestTimeout connection request timeout milliseconds
@@ -93,11 +93,11 @@ public void setConnectionRequestTimeout(final int connectionRequestTimeout) {
9393

9494
/**
9595
* Set timeout in seconds used when requesting a connection from the connection manager.
96-
* <p/>
96+
* <p>
9797
* The default value is 10 seconds.
98-
* <p/>
98+
* <p>
9999
* Set to 0 for infinite.
100-
* <p/>
100+
* <p>
101101
*
102102
* @param connectionRequestTimeout connection request timeout seconds
103103
*/
@@ -116,9 +116,9 @@ public int getConnectionRequestTimeout() {
116116

117117
/**
118118
* Set socket timeout (maximum period inactivity between two consecutive data packets) milliseconds.
119-
* <p/>
119+
* <p>
120120
* The default value is 60 seconds (60000 ms).
121-
* <p/>
121+
* <p>
122122
* Set to 0 for infinite.
123123
*
124124
* @param socketTimeout socket timeout milliseconds
@@ -130,9 +130,9 @@ public void setSocketTimeout(int socketTimeout) {
130130

131131
/**
132132
* Set socket timeout (maximum period inactivity between two consecutive data packets) seconds.
133-
* <p/>
133+
* <p>
134134
* The default value is 60 seconds.
135-
* <p/>
135+
* <p>
136136
* Set to 0 for infinite.
137137
*
138138
* @param socketTimeout socket timeout seconds

src/main/java/com/gooddata/md/Meta.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public String getUri() {
151151

152152
/**
153153
* Default is false/not-deprecated.
154+
* @return true when the linked object is deprecated, null if not set
154155
*/
155156
@JsonProperty("deprecated")
156157
@JsonSerialize(using = BooleanStringSerializer.class, include = Inclusion.NON_NULL)
@@ -174,6 +175,7 @@ public void setIdentifier(String identifier) {
174175

175176
/**
176177
* Is the object production or not? Defaults to true.
178+
* @return true when the linked object is production, null if not set
177179
*/
178180
@JsonProperty("isProduction")
179181
@JsonSerialize(using = BooleanIntegerSerializer.class, include = Inclusion.NON_NULL)
@@ -189,6 +191,7 @@ public void setProduction(final Boolean production) {
189191

190192
/**
191193
* Flag that MD object is locked; default is false/unlocked.
194+
* @return true when the linked object is locked, null if not set
192195
*/
193196
@JsonProperty("locked")
194197
@JsonSerialize(using = BooleanIntegerSerializer.class, include = Inclusion.NON_NULL)
@@ -204,6 +207,7 @@ public void setLocked(Boolean locked) {
204207

205208
/**
206209
* Default is false/listed.
210+
* @return true when the linked object is unlisted, null if not set
207211
*/
208212
@JsonProperty("unlisted")
209213
@JsonSerialize(using = BooleanIntegerSerializer.class, include = Inclusion.NON_NULL)
@@ -219,6 +223,7 @@ public void setUnlisted(Boolean unlisted) {
219223

220224
/**
221225
* Is the linked object shared with someone via ACLs?
226+
* @return true when the linked object is shared, null if not set
222227
*/
223228
@JsonProperty("sharedWithSomeone")
224229
@JsonSerialize(using = BooleanIntegerSerializer.class, include = Inclusion.NON_NULL)

src/main/java/com/gooddata/md/MetadataService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ public <T extends Queryable> Collection<String> findUris(Project project,
300300

301301
/**
302302
* Find all objects which use the given object.
303+
* @param project project
303304
* @param obj object to find using objects for
304305
* @param nearest find nearest objects only
305306
* @param types what types (categories) to search for (for example 'reportDefinition', 'report', 'tableDataLoad',
@@ -313,6 +314,7 @@ public Collection<Entry> usedBy(Project project, Obj obj, boolean nearest, Class
313314

314315
/**
315316
* Find all objects which use the given object.
317+
* @param project project
316318
* @param uri URI of object to find using objects for
317319
* @param nearest find nearest objects only
318320
* @param types what types (categories) to search for (for example 'reportDefinition', 'report', 'tableDataLoad',

src/main/java/com/gooddata/project/ProjectService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ public List<ProjectFeatureFlag> listFeatureFlags(Project project) {
403403
*
404404
* @param project project for which the feature flag should be created, cannot be null
405405
* @param featureFlag feature flag to be created, cannot be null
406+
* @return created feature flag
406407
*/
407408
public ProjectFeatureFlag createFeatureFlag(final Project project, final ProjectFeatureFlag featureFlag) {
408409
notNull(project, "project");

src/main/java/com/gooddata/warehouse/WarehouseService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public PageableList<Warehouse> listWarehouses() {
157157
* Lists Warehouses. Returns empty list in case there are no warehouses.
158158
* Returns requested page (by page limit and offset). Use {@link #listWarehouses()} to get first page with default setting.
159159
*
160+
* @param page page to be listed
160161
* @return requested page of list of instances or empty list
161162
*/
162163
public PageableList<Warehouse> listWarehouses(Page page) {

0 commit comments

Comments
 (0)