Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8271489: (doc) Clarify Filter Factory example
Reviewed-by: iris, kcr, naoto, bpb
  • Loading branch information
Roger Riggs committed Jul 29, 2021
1 parent 20d2dc1 commit 286d31363551b00c4b3f50f5ee388f8e7875d0a1
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/java.base/share/classes/java/io/ObjectInputFilter.java
@@ -207,13 +207,13 @@
* // Called from the OIS constructor or perhaps OIS.setObjectInputFilter with no current filter
* var filter = filterThreadLocal.get();
* if (filter != null) {
* // Prepend a filter to reject all UNDECIDED results
* // Wrap the filter to reject UNDECIDED results
* filter = ObjectInputFilter.rejectUndecidedClass(filter);
* }
* if (next != null) {
* // Prepend the next filter to the thread filter, if any
* // Merge the next filter with the thread filter, if any
* // Initially this is the static JVM-wide filter passed from the OIS constructor
* // Append the filter to reject all UNDECIDED results
* // Wrap the filter to reject UNDECIDED results
* filter = ObjectInputFilter.merge(next, filter);
* filter = ObjectInputFilter.rejectUndecidedClass(filter);
* }
@@ -222,7 +222,7 @@
* // Called from OIS.setObjectInputFilter with a current filter and a stream-specific filter.
* // The curr filter already incorporates the thread filter and static JVM-wide filter
* // and rejection of undecided classes
* // If there is a stream-specific filter prepend it and a filter to recheck for undecided
* // If there is a stream-specific filter wrap it and a filter to recheck for undecided
* if (next != null) {
* next = ObjectInputFilter.merge(next, curr);
* next = ObjectInputFilter.rejectUndecidedClass(next);

1 comment on commit 286d313

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 286d313 Jul 29, 2021

Please sign in to comment.