summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-30 13:50:32 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-30 13:50:32 +0200
commit5a8c5930033509d66010069bd7cdfc6458c30050 (patch)
tree219cc6567ec3305e143fd6f9ad7cd7119eeb5baf /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow
parent824ab16f5058901a19cea246d6be852d085d0247 (diff)
downloadpdf-over-5a8c5930033509d66010069bd7cdfc6458c30050.tar.gz
pdf-over-5a8c5930033509d66010069bd7cdfc6458c30050.tar.bz2
pdf-over-5a8c5930033509d66010069bd7cdfc6458c30050.zip
get rid of now-unnecessary instanceof/upcast checks
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
index 96ba725d..2d443185 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
@@ -208,7 +208,7 @@ public class MobileBKUState extends State {
// set possible error message
ui.setErrorMessage(mobileStatus.errorMessage);
mobileStatus.errorMessage = null;
- } else if (mobileStatus instanceof ATrustStatus) {
+ } else {
ui.setErrorMessage(Messages.getString("mobileBKU.aTrustDisclaimer"));
}
@@ -311,8 +311,8 @@ public class MobileBKUState extends State {
* Show QR code
*/
public void showQR() {
- final ATrustStatus status = (ATrustStatus) this.status;
- final ATrustHandler handler = (ATrustHandler) this.handler;
+ final ATrustStatus status = this.status;
+ final ATrustHandler handler = this.handler;
final Timer checkDone = new Timer();
checkDone.scheduleAtFixedRate(new TimerTask() {
@@ -383,7 +383,7 @@ public class MobileBKUState extends State {
*/
public void showOpenAppMessageWithSMSandCancel() throws SignatureException {
- final ATrustStatus status = (ATrustStatus) this.status;
+ final ATrustStatus status = this.status;
Display.getDefault().syncExec(() -> {
WaitingForAppComposite waitingForAppcomposite = this.getWaitingForAppComposite();
@@ -431,7 +431,7 @@ public class MobileBKUState extends State {
}
private void undecidedPolling(){
- final ATrustHandler handler = (ATrustHandler) this.handler;
+ final ATrustHandler handler = this.handler;
Thread pollingThread = new Thread(() -> {
try {
@@ -455,8 +455,8 @@ public class MobileBKUState extends State {
* this information is shown
*/
public void showFingerPrintInformation() {
- final ATrustStatus status = (ATrustStatus) this.status;
- final ATrustHandler handler = (ATrustHandler) this.handler;
+ final ATrustStatus status = this.status;
+ final ATrustHandler handler = this.handler;
Timer checkDone = new Timer();
checkDone.scheduleAtFixedRate(new TimerTask() {
@@ -545,7 +545,7 @@ public class MobileBKUState extends State {
getStateMachine().display(
this.getWaitingComposite());
- this.setNextState(new at.asit.pdfover.gui.workflow.states.SigningState(getStateMachine()));
+ this.setNextState(new SigningState(getStateMachine()));
}
/*