Cleanup.
This commit is contained in:
parent
8f408d1f46
commit
8e8e530181
10 changed files with 84 additions and 60 deletions
|
@ -14,21 +14,13 @@ import java.time.*;
|
|||
public final class ReleaseInfo {
|
||||
public final static String PROJECT = "mobibot";
|
||||
public final static LocalDateTime BUILDDATE =
|
||||
LocalDateTime.ofInstant(Instant.ofEpochMilli(1554881826135L), ZoneId.systemDefault());
|
||||
LocalDateTime.ofInstant(Instant.ofEpochMilli(1555731762870L), ZoneId.systemDefault());
|
||||
public final static int MAJOR = 0;
|
||||
public final static int MINOR = 7;
|
||||
public final static int PATCH = 3;
|
||||
public final static String PRERELEASE = "beta";
|
||||
public final static String BUILDMETA = "261";
|
||||
|
||||
/**
|
||||
* The full semantic version string.
|
||||
*/
|
||||
public final static String VERSION = Integer.toString(MAJOR) + '.'
|
||||
+ Integer.toString(MINOR) + '.'
|
||||
+ Integer.toString(PATCH)
|
||||
+ ((!PRERELEASE.isEmpty()) ? "-" + PRERELEASE : "")
|
||||
+ ((!BUILDMETA.isEmpty()) ? "+" + BUILDMETA : "");
|
||||
public final static String BUILDMETA = "303";
|
||||
public final static String VERSION = "0.7.3-beta+303";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
|
|
|
@ -44,7 +44,7 @@ import java.util.regex.Pattern;
|
|||
* @created 2019-04-07
|
||||
* @since 1.0
|
||||
*/
|
||||
class ModuleException extends Exception {
|
||||
public class ModuleException extends Exception {
|
||||
private static final long serialVersionUID = -3036774290621088107L;
|
||||
private final String debugMessage;
|
||||
private final Pattern urlPattern = Pattern.compile("(https?://\\S+)(\\?\\S+)");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* PrivateMessage.java
|
||||
* NoticeMessage.java
|
||||
*
|
||||
* Copyright (c) 2004-2019, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
|
@ -53,7 +53,7 @@ public class NoticeMessage extends Message {
|
|||
/**
|
||||
* Create a new notice.
|
||||
*
|
||||
* @param message The ntoice's message.
|
||||
* @param message The notice's message.
|
||||
* @param color The color.
|
||||
*/
|
||||
public NoticeMessage(final String message, final String color) {
|
||||
|
|
|
@ -50,11 +50,11 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
* @since 1.0
|
||||
*/
|
||||
public class UtilsTest {
|
||||
static final String ASCII =
|
||||
private static final String ASCII =
|
||||
" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
||||
|
||||
final Calendar cal = Calendar.getInstance();
|
||||
final LocalDateTime localDateTime =
|
||||
private final Calendar cal = Calendar.getInstance();
|
||||
private final LocalDateTime localDateTime =
|
||||
LocalDateTime.of(1952, 2, 17, 12, 30, 0);
|
||||
|
||||
@BeforeClass
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* CurrencyConvertTest.java
|
||||
* CurrencyConverterTest.java
|
||||
*
|
||||
* Copyright (c) 2004-2019, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* properties.java
|
||||
* LocalProperties.java
|
||||
*
|
||||
* Copyright (c) 2004-2019, Erik C. Thauvin (erik@thauvin.net)
|
||||
* All rights reserved.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue