chore: optimized code to remove warnings
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
7a20ad8088
commit
997b25e659
2 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ object Logger {
|
||||||
try {
|
try {
|
||||||
println(
|
println(
|
||||||
("[" + Class.forName(caller.className).simpleName + "." +
|
("[" + Class.forName(caller.className).simpleName + "." +
|
||||||
caller.methodName + ":" + caller.lineNumber + "] [" + dtf.format(now)).toString() + "] <" + msg + ">"
|
caller.methodName + ":" + caller.lineNumber + "] [" + dtf.format(now)) + "] <" + msg + ">"
|
||||||
)
|
)
|
||||||
} catch (e: ClassNotFoundException) {
|
} catch (e: ClassNotFoundException) {
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
|
|
|
@ -23,8 +23,8 @@ import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
object TimeUtil {
|
object TimeUtil {
|
||||||
///Convert Miliseconds to xdays xhours xmins xsecs
|
///Convert Miliseconds to xdays xhours xmins xsecs
|
||||||
fun getTimeFormatedShortend(time: Long): String {
|
fun getTimeFormatedShortend(timeIn: Long): String {
|
||||||
var time = time
|
var time = timeIn
|
||||||
val days = TimeUnit.MILLISECONDS
|
val days = TimeUnit.MILLISECONDS
|
||||||
.toDays(time)
|
.toDays(time)
|
||||||
time -= TimeUnit.DAYS.toMillis(days)
|
time -= TimeUnit.DAYS.toMillis(days)
|
||||||
|
@ -55,8 +55,8 @@ object TimeUtil {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getTimeFormatedRaw(time: Long): String {
|
fun getTimeFormatedRaw(timeIn: Long): String {
|
||||||
var time = time
|
var time = timeIn
|
||||||
val days = TimeUnit.MILLISECONDS
|
val days = TimeUnit.MILLISECONDS
|
||||||
.toDays(time)
|
.toDays(time)
|
||||||
time -= TimeUnit.DAYS.toMillis(days)
|
time -= TimeUnit.DAYS.toMillis(days)
|
||||||
|
|
Loading…
Reference in a new issue