Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

(Sonar) Fixed finding: "Utility classes should not have public constructors" #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*
*/
public class ConvertStringToBooleanExamples {
private ConvertStringToBooleanExamples() {
}

public static void main(String[] args) {
// Convert using Long.parseLong()
String numberAsString = "true";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*
*/
public class ConvertStringToByteExamples {
private ConvertStringToByteExamples() {
}

public static void main(String[] args) {
// Convert using IByte.parseByte
String numberAsString = "100";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.javaguides.strings.convertions.fromstring;

public class ConvertStringToCharacterExamples {
private ConvertStringToCharacterExamples() {
}

public static void main(String[] args) {

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*
*/
public class ConvertStringToDoupleExamples {
private ConvertStringToDoupleExamples() {
}

public static void main(String[] args) {
// Convert using Double.parseDouble()
String str = "153.25";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*
*/
public class ConvertStringToFloatExamples {
private ConvertStringToFloatExamples() {
}

public static void main(String[] args) {
// Convert using Float.parseFloat()
String numberAsString = "153.25f";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
*
*/
public class ConvertStringToIntegerExamples {
private ConvertStringToIntegerExamples() {
}

public static void main(String[] args) {
// Convert using Integer.parseInt()
String str = "1234";
Expand Down