Skip to content

Commit

Permalink
Fixed some small Comment Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MeAlam1 committed Nov 3, 2024
1 parent ac704f0 commit 355f316
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private BlueLibConstants() {
*/
public static boolean isBlueLibLoggingEnabled = true;

/** TODO: Always have on False when pushing to production
/**
* A {@link Boolean} to enable or disable general logging.
*
* @since 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/software/bluelib/json/JSONMerger.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void mergeJsonObjects(JsonObject pTarget, JsonObject pSource) {
targetArray.add(element);
}

BaseLogger.log(BaseLogLevel.ERROR, "Merged array for key: " + key, true);
BaseLogger.log(BaseLogLevel.INFO, "Merged array for key: " + key, true);
} else {
pTarget.add(key, sourceElement);
BaseLogger.log(BaseLogLevel.WARNING, "Overwriting value for key: " + key, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,6 @@
*/
public class BaseLogLevel {

/**
* Private constructor to prevent instantiation.
* <p>
* This constructor is intentionally empty to prevent creating instances of this class.
* </p>
*
* @author MeAlam
* @since 1.0.0
*/
private BaseLogLevel() {
}

/**
* Standard informational log level.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private BaseLogger() {
/**
* A {@code void} to enable or disable {@code BlueLib} specific logging.
*
* @param pEnabled {@link boolean} - Indicates whether to enable or disable BlueLib logging.
* @param pEnabled {@link Boolean} - Indicates whether to enable or disable BlueLib logging.
* @since 1.0.0
*/
public static void setBlueLibLoggingEnabled(boolean pEnabled) {
Expand Down Expand Up @@ -72,7 +72,7 @@ public static boolean isLoggingEnabled() {
/**
* A {@code void} to enable or disable general logging.
*
* @param pEnabled {@link boolean} - Indicates whether to enable or disable general logging.
* @param pEnabled {@link Boolean} - Indicates whether to enable or disable general logging.
* @since 1.0.0
*/
public static void setLoggingEnabled(boolean pEnabled) {
Expand All @@ -90,7 +90,7 @@ public static void setLoggingEnabled(boolean pEnabled) {
* @param pLogLevel {@link Level} - The logging level to use.
* @param pMessage {@link String} - The message to log.
* @param pThrowable {@link Throwable} - The throwable to log with the message.
* @param pIsBlueLib {@link boolean} - Indicates if the message is {@code BlueLib} specific.
* @param pIsBlueLib {@link Boolean} - Indicates if the message is {@code BlueLib} specific.
* @since 1.0.0
*/
public static void log(Level pLogLevel, String pMessage, Throwable pThrowable, boolean pIsBlueLib) {
Expand All @@ -108,7 +108,7 @@ public static void log(Level pLogLevel, String pMessage, Throwable pThrowable, b
*
* @param pLogLevel {@link Level} - The logging level to use.
* @param pMessage {@link String} - The message to log.
* @param pIsBlueLib {@link boolean} - Indicates if the message is {@code BlueLib} specific.
* @param pIsBlueLib {@link Boolean} - Indicates if the message is {@code BlueLib} specific.
* @since 1.0.0
*/
public static void log(Level pLogLevel, String pMessage, boolean pIsBlueLib) {
Expand Down

0 comments on commit 355f316

Please sign in to comment.