Update application interceptor
Clean code
This commit is contained in:
parent
f6d6a2faf5
commit
213806d581
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -296,7 +296,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -296,7 +296,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -296,7 +296,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
@ -295,7 +295,7 @@ public class AppInterceptor implements HandlerInterceptor {
|
|||||||
try {
|
try {
|
||||||
ruanganAsalId = Integer.parseInt(KdRuangan);
|
ruanganAsalId = Integer.parseInt(KdRuangan);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
ruanganAsalId = null;
|
ruanganAsalId = 0;
|
||||||
}
|
}
|
||||||
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
boolean adaError = CommonUtil.isNotNullOrEmpty(ex);
|
||||||
if (notHttpOK || notLewatMenu || adaError)
|
if (notHttpOK || notLewatMenu || adaError)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user