Xiaoven / codegex

A light-weight tools like spotbugs
GNU Lesser General Public License v2.1
1 stars 0 forks source link

FPs of RV_EXCEPTION_NOT_THROWN). #129

Closed Xiaoven closed 3 years ago

Xiaoven commented 3 years ago
// https://github.com/AzureSDKAutomation/azure-sdk-for-java/pull/7314/files
@@ -733,6 +734,7 @@ public WorkspaceInner createOrUpdate(
                    new IllegalArgumentException(
                        "Parameter this.client.getSubscriptionId() is required and cannot be null."));

原因:该 exception 作为参数传递,但是 patch 没有显示它前面的 method ,导致它被单独划分一个 statement。

解决办法:做括号匹配,再检查分号