File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/ai/nightfall/scan Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ try (NightfallClient c = NightfallClient.Builder.defaultClient()) {
8282 ScanTextConfig config = ScanTextConfig . fromDetectionRuleUUIDs(Arrays . asList(rule), 20 );
8383 ScanTextRequest req = new ScanTextRequest (payload, config);
8484
85- ScanTextResponse response = c. scan (req);
85+ ScanTextResponse response = c. scanText (req);
8686 System . out. println(" findings: " + response. getFindings());
8787}
8888```
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public void close() {
8787 * @throws IllegalArgumentException thrown if <code>request</code> is null
8888 * @throws NightfallRequestTimeoutException thrown if the request is aborted because the timeout is exceeded
8989 */
90- public ScanTextResponse scan (ScanTextRequest request ) {
90+ public ScanTextResponse scanText (ScanTextRequest request ) {
9191 if (request == null ) {
9292 throw new IllegalArgumentException ("request must be non-null" );
9393 }
You can’t perform that action at this time.
0 commit comments