Skip to content

SONARJAVA-6862 Update rule metadata - #6045

Merged
romainbrenguier merged 3 commits into
masterfrom
bot/update-rule-metadata
Aug 27, 2026
Merged

SONARJAVA-6862 Update rule metadata#6045
romainbrenguier merged 3 commits into
masterfrom
bot/update-rule-metadata

Conversation

@hashicorp-vault-sonar-prod

Copy link
Copy Markdown
Contributor

Rule Metadata Update Summary

Sonarpedia Rules to update Rules updated
./sonarpedia.json 744 7
Total 744 7

Rule API Version: 2.26.0.6023

This PR was automatically generated to update rule metadata across all supported languages.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Update rule metadata SONARJAVA-6862 Update rule metadata Aug 27, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

SONARJAVA-6862

@datadog-sonarsource

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Ruling needs updating. A fix PR has been created: #6047

Please review and merge it into your branch.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Ruling Diff Summary

Detected changes in 6 rule files: 0 issues removed, 104 issues added.

S9357 (java) on commons-beanutils - 0 issues removed, 8 issues added

Added src/main/java/org/apache/commons/beanutils2/BeanMap.java (line 74)

        69 |     private static Map<Class<? extends Object>, Transformer> createTypeTransformers() {
        70 |         final Map<Class<? extends Object>, Transformer> defTransformers =
        71 |                 new HashMap<>();
        72 |         defTransformers.put(
        73 |             Boolean.TYPE,
>>>     74 |             new Transformer() {
        75 |                 @Override
        76 |                 public Object transform( final Object input ) {
        77 |                     return Boolean.valueOf( input.toString() );
        78 |                 }
        79 |             }

Added src/main/java/org/apache/commons/beanutils2/BeanMap.java (line 83)

        78 |                 }
        79 |             }
        80 |         );
        81 |         defTransformers.put(
        82 |             Character.TYPE,
>>>     83 |             new Transformer() {
        84 |                 @Override
        85 |                 public Object transform( final Object input ) {
        86 |                     return Character.valueOf( input.toString().charAt( 0 ) );
        87 |                 }
        88 |             }

Added src/main/java/org/apache/commons/beanutils2/BeanMap.java (line 92)

        87 |                 }
        88 |             }
        89 |         );
        90 |         defTransformers.put(
        91 |             Byte.TYPE,
>>>     92 |             new Transformer() {
        93 |                 @Override
        94 |                 public Object transform( final Object input ) {
        95 |                     return Byte.valueOf( input.toString() );
        96 |                 }
        97 |             }
S9357 (java) on eclipse-jetty - 0 issues removed, 4 issues added

Added jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContextState.java (line 144)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContextState.java)

Added jetty-server/src/main/java/org/eclipse/jetty/server/LowResourceMonitor.java (line 74)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/LowResourceMonitor.java)

Added jetty-server/src/main/java/org/eclipse/jetty/server/session/SessionHandler.java (line 297)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/session/SessionHandler.java)

Added jetty-util/src/main/java/org/eclipse/jetty/util/MemoryUtils.java (line 37)

(source file not found at this revision: jetty-util/src/main/java/org/eclipse/jetty/util/MemoryUtils.java)
S9357 (java) on eclipse-jetty-similar-to-main - 0 issues removed, 3 issues added - new ruling file

Added jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContextState.java (line 144)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/AsyncContextState.java)

Added jetty-server/src/main/java/org/eclipse/jetty/server/LowResourceMonitor.java (line 74)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/LowResourceMonitor.java)

Added jetty-server/src/main/java/org/eclipse/jetty/server/session/SessionHandler.java (line 297)

(source file not found at this revision: jetty-server/src/main/java/org/eclipse/jetty/server/session/SessionHandler.java)
S9357 (java) on guava - 0 issues removed, 84 issues added - new ruling file

Added src/com/google/common/base/Converter.java (line 180)

       175 |    * a successful {@code remove()} call, {@code fromIterable} no longer contains the corresponding
       176 |    * element.
       177 |    */
       178 |   public Iterable<B> convertAll(final Iterable<? extends A> fromIterable) {
       179 |     checkNotNull(fromIterable, "fromIterable");
>>>    180 |     return new Iterable<B>() {
       181 |       @Override
       182 |       public Iterator<B> iterator() {
       183 |         return new Iterator<B>() {
       184 |           private final Iterator<? extends A> fromIterator = fromIterable.iterator();
       185 | 

Added src/com/google/common/base/Optional.java (line 297)

       292 |    */
       293 |   @Beta
       294 |   public static <T> Iterable<T> presentInstances(
       295 |       final Iterable<? extends Optional<? extends T>> optionals) {
       296 |     checkNotNull(optionals);
>>>    297 |     return new Iterable<T>() {
       298 |       @Override
       299 |       public Iterator<T> iterator() {
       300 |         return new AbstractIterator<T>() {
       301 |           private final Iterator<? extends Optional<? extends T>> iterator =
       302 |               checkNotNull(optionals.iterator());

Added src/com/google/common/base/Splitter.java (line 148)

       143 |   @CheckReturnValue
       144 |   public static Splitter on(final CharMatcher separatorMatcher) {
       145 |     checkNotNull(separatorMatcher);
       146 | 
       147 |     return new Splitter(
>>>    148 |         new Strategy() {
       149 |           @Override
       150 |           public SplittingIterator iterator(Splitter splitter, final CharSequence toSplit) {
       151 |             return new SplittingIterator(splitter, toSplit) {
       152 |               @Override
       153 |               int separatorStart(int start) {

Added src/com/google/common/base/Splitter.java (line 179)

       174 |   @CheckReturnValue
       175 |   public static Splitter on(final String separator) {
       176 |     checkArgument(separator.length() != 0, "The separator may not be the empty string.");
       177 | 
       178 |     return new Splitter(
>>>    179 |         new Strategy() {
       180 |           @Override
       181 |           public SplittingIterator iterator(Splitter splitter, CharSequence toSplit) {
       182 |             return new SplittingIterator(splitter, toSplit) {
       183 |               @Override
       184 |               public int separatorStart(int start) {

Added src/com/google/common/base/Splitter.java (line 230)

       225 |         !separatorPattern.matcher("").matches(),
       226 |         "The pattern may not match the empty string: %s",
       227 |         separatorPattern);
       228 | 
       229 |     return new Splitter(
>>>    230 |         new Strategy() {
       231 |           @Override
       232 |           public SplittingIterator iterator(final Splitter splitter, CharSequence toSplit) {
       233 |             final Matcher matcher = separatorPattern.matcher(toSplit);
       234 |             return new SplittingIterator(splitter, toSplit) {
       235 |               @Override

Added src/com/google/common/cache/CacheBuilder.java (line 183)

       178 |         }
       179 |       });
       180 |   static final CacheStats EMPTY_STATS = new CacheStats(0, 0, 0, 0, 0, 0);
       181 | 
       182 |   static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
>>>    183 |       new Supplier<StatsCounter>() {
       184 |     @Override
       185 |     public StatsCounter get() {
       186 |       return new SimpleStatsCounter();
       187 |     }
       188 |   };

Added src/com/google/common/cache/LocalCache.java (line 2327)

      2322 | 
      2323 |     ListenableFuture<V> loadAsync(final K key, final int hash,
      2324 |         final LoadingValueReference<K, V> loadingValueReference, CacheLoader<? super K, V> loader) {
      2325 |       final ListenableFuture<V> loadingFuture = loadingValueReference.loadFuture(key, loader);
      2326 |       loadingFuture.addListener(
>>>   2327 |           new Runnable() {
      2328 |             @Override
      2329 |             public void run() {
      2330 |               try {
      2331 |                 V newValue = getAndRecordStats(key, hash, loadingValueReference, loadingFuture);
      2332 |               } catch (Throwable t) {

Added src/com/google/common/cache/LocalCache.java (line 3547)

      3542 |         if (newValue == null) {
      3543 |           return Futures.immediateFuture(null);
      3544 |         }
      3545 |         // To avoid a race, make sure the refreshed value is set into loadingValueReference
      3546 |         // *before* returning newValue from the cache query.
>>>   3547 |         return Futures.transform(newValue, new Function<V, V>() {
      3548 |           @Override
      3549 |           public V apply(V newValue) {
      3550 |             LoadingValueReference.this.set(newValue);
      3551 |             return newValue;
      3552 |           }

Added src/com/google/common/cache/LongAddables.java (line 38)

        33 |   
        34 |   static {
        35 |     Supplier<LongAddable> supplier;
        36 |     try {
        37 |       new LongAdder(); // trigger static initialization of the LongAdder class, which may fail
>>>     38 |       supplier = new Supplier<LongAddable>() {
        39 |         @Override
        40 |         public LongAddable get() {
        41 |           return new LongAdder();
        42 |         }
        43 |       };

Added src/com/google/common/cache/LongAddables.java (line 45)

        40 |         public LongAddable get() {
        41 |           return new LongAdder();
        42 |         }
        43 |       };
        44 |     } catch (Throwable t) { // we really want to catch *everything*
>>>     45 |       supplier = new Supplier<LongAddable>() {
        46 |         @Override
        47 |         public LongAddable get() {
        48 |           return new PureJavaLongAddable();
        49 |         }
        50 |       };

Added src/com/google/common/cache/RemovalListeners.java (line 45)

        40 |    */
        41 |   public static <K, V> RemovalListener<K, V> asynchronous(
        42 |       final RemovalListener<K, V> listener, final Executor executor) {
        43 |     checkNotNull(listener);
        44 |     checkNotNull(executor);
>>>     45 |     return new RemovalListener<K, V>() {
        46 |       @Override
        47 |       public void onRemoval(final RemovalNotification<K, V> notification) {
        48 |         executor.execute(new Runnable() {
        49 |           @Override
        50 |           public void run() {

Added src/com/google/common/cache/RemovalListeners.java (line 48)

        43 |     checkNotNull(listener);
        44 |     checkNotNull(executor);
        45 |     return new RemovalListener<K, V>() {
        46 |       @Override
        47 |       public void onRemoval(final RemovalNotification<K, V> notification) {
>>>     48 |         executor.execute(new Runnable() {
        49 |           @Override
        50 |           public void run() {
        51 |             listener.onRemoval(notification);
        52 |           }
        53 |         });

Added src/com/google/common/collect/Collections2.java (line 302)

       297 |     StringBuilder sb = newStringBuilderForCollection(collection.size()).append('[');
       298 |     STANDARD_JOINER.appendTo(
       299 |         sb,
       300 |         Iterables.transform(
       301 |             collection,
>>>    302 |             new Function<Object, Object>() {
       303 |               @Override
       304 |               public Object apply(Object input) {
       305 |                 return input == collection ? "(this Collection)" : input;
       306 |               }
       307 |             }));

Added src/com/google/common/collect/FilteredEntryMultimap.java (line 398)

       393 |         }
       394 | 
       395 |         private boolean removeEntriesIf(final Predicate<? super Multiset.Entry<K>> predicate) {
       396 |           return FilteredEntryMultimap.this
       397 |               .removeEntriesIf(
>>>    398 |                   new Predicate<Map.Entry<K, Collection<V>>>() {
       399 |                     @Override
       400 |                     public boolean apply(Map.Entry<K, Collection<V>> entry) {
       401 |                       return predicate.apply(
       402 |                           Multisets.immutableEntry(entry.getKey(), entry.getValue().size()));
       403 |                     }

Added src/com/google/common/collect/Interners.java (line 46)

        41 |    * unlike {@link String#intern}, using this interner does not consume memory in the permanent
        42 |    * generation.
        43 |    */
        44 |   public static <E> Interner<E> newStrongInterner() {
        45 |     final ConcurrentMap<E, E> map = new MapMaker().makeMap();
>>>     46 |     return new Interner<E>() {
        47 |       @Override
        48 |       public E intern(E sample) {
        49 |         E canonical = map.putIfAbsent(checkNotNull(sample), sample);
        50 |         return (canonical == null) ? sample : canonical;
        51 |       }
S9357 (java) on mall - 0 issues removed, 2 issues added - new ruling file

Added mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsPromotionServiceImpl.java (line 177)

       172 |         }
       173 |     }
       174 | 
       175 |     private PmsProductFullReduction getProductFullReduction(BigDecimal totalAmount,List<PmsProductFullReduction> fullReductionList) {
       176 |         //按条件从高到低排序
>>>    177 |         fullReductionList.sort(new Comparator<PmsProductFullReduction>() {
       178 |             @Override
       179 |             public int compare(PmsProductFullReduction o1, PmsProductFullReduction o2) {
       180 |                 return o2.getFullPrice().subtract(o1.getFullPrice()).intValue();
       181 |             }
       182 |         });

Added mall-portal/src/main/java/com/macro/mall/portal/service/impl/OmsPromotionServiceImpl.java (line 211)

       206 |     /**
       207 |      * 根据购买商品数量获取满足条件的打折优惠策略
       208 |      */
       209 |     private PmsProductLadder getProductLadder(int count, List<PmsProductLadder> productLadderList) {
       210 |         //按数量从大到小排序
>>>    211 |         productLadderList.sort(new Comparator<PmsProductLadder>() {
       212 |             @Override
       213 |             public int compare(PmsProductLadder o1, PmsProductLadder o2) {
       214 |                 return o2.getCount() - o1.getCount();
       215 |             }
       216 |         });
S9357 (java) on sonar-server - 0 issues removed, 3 issues added

Added src/main/java/org/sonar/server/computation/task/projectanalysis/issue/NewEffortCalculator.java (line 55)

(source file not found at this revision: src/main/java/org/sonar/server/computation/task/projectanalysis/issue/NewEffortCalculator.java)

Added src/main/java/org/sonar/server/issue/IssuesFinderSort.java (line 89)

(source file not found at this revision: src/main/java/org/sonar/server/issue/IssuesFinderSort.java)

Added src/main/java/org/sonar/server/issue/IssuesFinderSort.java (line 142)

(source file not found at this revision: src/main/java/org/sonar/server/issue/IssuesFinderSort.java)

@github-actions

Copy link
Copy Markdown
Contributor

Ruling needs updating. A fix PR has been created: #6048

Please review and merge it into your branch.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@sonarqube-next

Copy link
Copy Markdown
Contributor

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
0 Dependency risks
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@romainbrenguier
romainbrenguier merged commit 65842cc into master Aug 27, 2026
16 checks passed
@romainbrenguier
romainbrenguier deleted the bot/update-rule-metadata branch August 27, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant