Skip to content

Commit

Permalink
SDK-2486: Amended Java Doc comments / helper methods should always us…
Browse files Browse the repository at this point in the history
…e the builder method
  • Loading branch information
bucky-boy authored and Artem Lukyanau committed Sep 23, 2024
1 parent ec18bef commit e1224a6
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public String getPrimaryColour() {
}

/**
* The primary colour for dark mode, configured for the session
* The primary colour to use when in dark mode
*
* @return the primary colour
*/
Expand Down Expand Up @@ -145,7 +145,7 @@ public String getLocale() {
}

/**
* The dark mode option configured for the session
* Whether to use dark mode - may be 'ON', 'OFF', or 'AUTO'
*
* @return the dark mode
*/
Expand Down Expand Up @@ -289,7 +289,7 @@ public Builder withPrimaryColour(String primaryColour) {
}

/**
* Sets the primary colour for the dark mode to be used by the web/native client
* Sets the primary colour to be used by the web/native client when in dark mode
*
* @param primaryColourDarkMode the primary colour for the dark mode, hexadecimal value e.g. #ff0000
* @return the builder
Expand Down Expand Up @@ -333,7 +333,7 @@ public Builder withLocale(String locale) {
}

/**
* Sets the dark mode to be used by the web/native client
* Whether to use dark mode on the web/native client - may be 'ON', 'OFF', or 'AUTO'
*
* @param darkMode the dark mode, e.g. "ON"
* @return the builder
Expand All @@ -349,8 +349,7 @@ public Builder withDarkMode(String darkMode) {
* @return the builder
*/
public Builder withDarkModeOn() {
this.darkMode = DocScanConstants.ON;
return this;
return withDarkMode(DocScanConstants.ON);
}

/**
Expand All @@ -359,8 +358,7 @@ public Builder withDarkModeOn() {
* @return the builder
*/
public Builder withDarkModeOff() {
this.darkMode = DocScanConstants.OFF;
return this;
return withDarkMode(DocScanConstants.OFF);
}

/**
Expand All @@ -369,8 +367,7 @@ public Builder withDarkModeOff() {
* @return the builder
*/
public Builder withDarkModeAuto() {
this.darkMode = DocScanConstants.AUTO;
return this;
return withDarkMode(DocScanConstants.AUTO);
}

/**
Expand Down

0 comments on commit e1224a6

Please sign in to comment.