|
|
@ -151,7 +151,7 @@ public class EnvDetectorCenter { |
|
|
|
if (!validAction.get()) { |
|
|
|
if (!validAction.get()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect(); |
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect().stream(); |
|
|
|
|
|
|
|
|
|
|
|
// 展示效果
|
|
|
|
// 展示效果
|
|
|
|
NotificationDialogProperties properties = new NotificationDialogProperties(DesignerContext.getDesignerFrame(), Toolkit.i18nText("Fine-Design_Basic_Detect_Notification_Title")); |
|
|
|
NotificationDialogProperties properties = new NotificationDialogProperties(DesignerContext.getDesignerFrame(), Toolkit.i18nText("Fine-Design_Basic_Detect_Notification_Title")); |
|
|
@ -196,7 +196,7 @@ public class EnvDetectorCenter { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public List<DetectorResult> terminate(Throwable throwable) { |
|
|
|
public List<DetectorResult> terminate(Throwable throwable) { |
|
|
|
|
|
|
|
|
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect(throwable); |
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect(throwable).stream(); |
|
|
|
return resultStream |
|
|
|
return resultStream |
|
|
|
.filter((e) -> e.getStatus() == DetectorStatus.EXCEPTION) |
|
|
|
.filter((e) -> e.getStatus() == DetectorStatus.EXCEPTION) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
.collect(Collectors.toList()); |
|
|
@ -209,7 +209,7 @@ public class EnvDetectorCenter { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public List<DetectorResult> terminateUnexpectedly() { |
|
|
|
public List<DetectorResult> terminateUnexpectedly() { |
|
|
|
|
|
|
|
|
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect(); |
|
|
|
Stream<DetectorResult> resultStream = DetectorBridge.getInstance().detect().stream(); |
|
|
|
return resultStream |
|
|
|
return resultStream |
|
|
|
.filter((e) -> e.getStatus() == DetectorStatus.EXCEPTION) |
|
|
|
.filter((e) -> e.getStatus() == DetectorStatus.EXCEPTION) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
.collect(Collectors.toList()); |
|
|
|