@@ -785,48 +785,48 @@ public void setTag(final String tag, final String value) {
785785 }
786786 }
787787 }
788-
788+
789789 /*
790790 * Uses to determine if there's an opportunity to avoid primitve boxing.
791791 * If the underlying map doesn't support efficient primitives, then boxing is used.
792792 * If the tag may be intercepted, then boxing is also used.
793793 */
794794 private boolean precheckIntercept (String tag ) {
795- // Usually only a single instanceof TagMap will be loaded,
796- // so isOptimized is turned into a direct call and then inlines to a constant
797- // Since isOptimized just returns a constant - doesn't require synchronization
798- return !unsafeTags .isOptimized () || tagInterceptor .needsIntercept (tag );
795+ // Usually only a single instanceof TagMap will be loaded,
796+ // so isOptimized is turned into a direct call and then inlines to a constant
797+ // Since isOptimized just returns a constant - doesn't require synchronization
798+ return !unsafeTags .isOptimized () || tagInterceptor .needsIntercept (tag );
799799 }
800-
800+
801801 /*
802802 * Used when precheckIntercept determines that boxing is unavoidable
803- *
803+ *
804804 * Either because the tagInterceptor needs to be fully checked (which requires boxing)
805- * In that case, a box has already been created so it makes sense to pass the box
805+ * In that case, a box has already been created so it makes sense to pass the box
806806 * onto TagMap, since optimized TagMap will cache the box
807- *
807+ *
808808 * -- OR --
809- *
810- * The TagMap isn't optimized and will need to box the primitive regardless of
809+ *
810+ * The TagMap isn't optimized and will need to box the primitive regardless of
811811 * tag interception
812812 */
813813 private void setBox (String tag , Object box ) {
814- if (!tagInterceptor .interceptTag (this , tag , box )) {
814+ if (!tagInterceptor .interceptTag (this , tag , box )) {
815815 synchronized (unsafeTags ) {
816- unsafeTags .set (tag , box );
816+ unsafeTags .set (tag , box );
817817 }
818- }
818+ }
819819 }
820820
821821 public void setTag (final String tag , final boolean value ) {
822822 if (null == tag ) {
823823 return ;
824824 }
825- if ( precheckIntercept (tag ) ) {
825+ if (precheckIntercept (tag )) {
826826 this .setBox (tag , value );
827827 } else {
828828 synchronized (unsafeTags ) {
829- unsafeTags .set (tag , value );
829+ unsafeTags .set (tag , value );
830830 }
831831 }
832832 }
@@ -835,11 +835,11 @@ public void setTag(final String tag, final int value) {
835835 if (null == tag ) {
836836 return ;
837837 }
838- if ( precheckIntercept (tag ) ) {
838+ if (precheckIntercept (tag )) {
839839 this .setBox (tag , value );
840840 } else {
841841 synchronized (unsafeTags ) {
842- unsafeTags .set (tag , value );
842+ unsafeTags .set (tag , value );
843843 }
844844 }
845845 }
@@ -862,11 +862,11 @@ public void setTag(final String tag, final float value) {
862862 if (null == tag ) {
863863 return ;
864864 }
865- if ( precheckIntercept (tag ) ) {
865+ if (precheckIntercept (tag )) {
866866 this .setBox (tag , value );
867867 } else {
868868 synchronized (unsafeTags ) {
869- unsafeTags .set (tag , value );
869+ unsafeTags .set (tag , value );
870870 }
871871 }
872872 }
@@ -875,11 +875,11 @@ public void setTag(final String tag, final double value) {
875875 if (null == tag ) {
876876 return ;
877877 }
878- if ( precheckIntercept (tag ) ) {
878+ if (precheckIntercept (tag )) {
879879 this .setBox (tag , value );
880880 } else {
881881 synchronized (unsafeTags ) {
882- unsafeTags .set (tag , value );
882+ unsafeTags .set (tag , value );
883883 }
884884 }
885885 }
0 commit comments