|
363 | 363 | <Class name="software.amazon.awssdk.utils.uri.SdkUri" /> |
364 | 364 | <Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE" /> |
365 | 365 | </Match> |
| 366 | + |
| 367 | + <!-- No plan to fix: These classes implement SLF4J SPI which requires specific method signatures. --> |
| 368 | + <Match> |
| 369 | + <Or> |
| 370 | + <Class name="software.amazon.awssdk.thirdparty.org.slf4j.impl.StaticLoggerBinder"/> |
| 371 | + <Class name="software.amazon.awssdk.thirdparty.org.slf4j.impl.StaticMarkerBinder"/> |
| 372 | + </Or> |
| 373 | + <Bug pattern="SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/> |
| 374 | + </Match> |
| 375 | + |
| 376 | + <!-- No plan to fix: Intentional exception handling patterns throughout the codebase. --> |
| 377 | + <Match> |
| 378 | + <Bug pattern="THROWS_METHOD_THROWS_RUNTIMEEXCEPTION,THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/> |
| 379 | + </Match> |
| 380 | + |
| 381 | + <!-- False positive: InputStream is not designed for concurrent access. The synchronized reset() is inherited behavior. --> |
| 382 | + <Match> |
| 383 | + <Class name="software.amazon.awssdk.http.auth.aws.internal.signer.chunkedencoding.ChunkedEncodedInputStream"/> |
| 384 | + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/> |
| 385 | + </Match> |
| 386 | + |
| 387 | + <!-- No plan to fix: Test constructor is intentionally package-private. --> |
| 388 | + <Match> |
| 389 | + <Or> |
| 390 | + <Class name="software.amazon.awssdk.http.apache.internal.conn.IdleConnectionReaper"/> |
| 391 | + <Class name="software.amazon.awssdk.http.apache5.internal.conn.IdleConnectionReaper"/> |
| 392 | + <Class name="software.amazon.awssdk.regions.util.HttpResourcesUtils"/> |
| 393 | + </Or> |
| 394 | + <Bug pattern="SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/> |
| 395 | + </Match> |
| 396 | + |
| 397 | + <!-- False positive: These classes have private constructors but use builder pattern. --> |
| 398 | + <Match> |
| 399 | + <Or> |
| 400 | + <Class name="software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider"/> |
| 401 | + <Class name="software.amazon.awssdk.auth.token.credentials.aws.DefaultAwsTokenProvider"/> |
| 402 | + </Or> |
| 403 | + <Bug pattern="SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/> |
| 404 | + </Match> |
| 405 | + |
| 406 | + <!-- No plan to fix: These are final classes, not vulnerable to finalizer attacks. --> |
| 407 | + <Match> |
| 408 | + <Or> |
| 409 | + <Class name="software.amazon.awssdk.http.apache.internal.conn.SdkTlsSocketFactory"/> |
| 410 | + <Class name="software.amazon.awssdk.http.apache.internal.impl.ApacheSdkHttpClient"/> |
| 411 | + <Class name="software.amazon.awssdk.http.apache5.internal.conn.SdkTlsSocketFactory"/> |
| 412 | + <Class name="software.amazon.awssdk.http.apache5.internal.impl.Apache5SdkHttpClient"/> |
| 413 | + <Class name="software.amazon.awssdk.http.nio.netty.internal.utils.BetterFixedChannelPool"/> |
| 414 | + <Class name="software.amazon.awssdk.http.crt.AwsCrtHttpClientBase"/> |
| 415 | + </Or> |
| 416 | + <Bug pattern="CT_CONSTRUCTOR_THROW"/> |
| 417 | + </Match> |
| 418 | + |
| 419 | + <!-- No plan to fix: Forked Netty reactive streams code with its own thread-safety model via Netty's EventLoop. --> |
| 420 | + <Match> |
| 421 | + <Or> |
| 422 | + <Class name="software.amazon.awssdk.http.nio.netty.internal.nrs.HandlerPublisher"/> |
| 423 | + <Class name="~software\.amazon\.awssdk\.http\.nio\.netty\.internal\.nrs\.HandlerSubscriber.*"/> |
| 424 | + </Or> |
| 425 | + <Bug pattern="AT_NONATOMIC_64BIT_PRIMITIVE,AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE"/> |
| 426 | + </Match> |
| 427 | + |
| 428 | + <!-- False positive: InputStream is not designed for concurrent access. --> |
| 429 | + <Match> |
| 430 | + <Class name="software.amazon.awssdk.core.internal.io.ChecksumValidatingInputStream"/> |
| 431 | + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/> |
| 432 | + </Match> |
| 433 | + |
| 434 | + <!-- No plan to fix: Final class, not vulnerable to finalizer attacks. --> |
| 435 | + <Match> |
| 436 | + <Or> |
| 437 | + <Class name="software.amazon.awssdk.core.io.ResettableInputStream"/> |
| 438 | + <Class name="software.amazon.awssdk.core.internal.async.ChecksumCalculatingAsyncRequestBody"/> |
| 439 | + <Class name="software.amazon.awssdk.core.internal.io.AwsChunkedEncodingInputStream"/> |
| 440 | + <Class name="software.amazon.awssdk.protocols.jsoncore.JsonWriter"/> |
| 441 | + <Class name="software.amazon.awssdk.codegen.lite.emitters.CodeWriter"/> |
| 442 | + <Class name="software.amazon.awssdk.auth.signer.internal.chunkedencoding.AwsS3V4ChunkSigner"/> |
| 443 | + <Class name="software.amazon.awssdk.enhanced.dynamodb.EnhancedType"/> |
| 444 | + <Class name="software.amazon.awssdk.enhanced.dynamodb.internal.immutable.ImmutableIntrospector"/> |
| 445 | + <Class name="software.amazon.awssdk.v2migration.ConstructorToFluent"/> |
| 446 | + </Or> |
| 447 | + <Bug pattern="CT_CONSTRUCTOR_THROW"/> |
| 448 | + </Match> |
| 449 | + |
| 450 | + <!-- No plan to fix: Floating point comparison is intentional in defaults processing. --> |
| 451 | + <Match> |
| 452 | + <Or> |
| 453 | + <Class name="software.amazon.awssdk.codegen.lite.defaultsmode.DefaultsLoader"/> |
| 454 | + <Class name="software.amazon.awssdk.protocols.rpcv2.internal.SdkRpcV2CborGenerator"/> |
| 455 | + </Or> |
| 456 | + <Bug pattern="FE_FLOATING_POINT_EQUALITY"/> |
| 457 | + </Match> |
| 458 | + |
| 459 | + <!-- No plan to fix: Async code with its own thread-safety model via reactive streams. --> |
| 460 | + <Match> |
| 461 | + <Or> |
| 462 | + <Class name="~software\.amazon\.awssdk\.core\.internal\.async\.ByteArraySplittingTransformer.*"/> |
| 463 | + <Class name="software.amazon.awssdk.core.internal.async.NonRetryableSubAsyncRequestBody"/> |
| 464 | + <Class name="software.amazon.awssdk.core.internal.async.RetryableSubAsyncRequestBody"/> |
| 465 | + <Class name="~software\.amazon\.awssdk\.core\.internal\.async\.SplittingPublisher.*"/> |
| 466 | + </Or> |
| 467 | + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE,AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE"/> |
| 468 | + </Match> |
| 469 | + |
| 470 | + <!-- False positive: Test utility class, thread safety not required. --> |
| 471 | + <Match> |
| 472 | + <Class name="software.amazon.awssdk.testutils.service.http.MockSyncHttpClient"/> |
| 473 | + <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/> |
| 474 | + </Match> |
| 475 | + |
| 476 | + <!-- No plan to fix: Serializable is required for compatibility but singleton pattern is intentional. --> |
| 477 | + <Match> |
| 478 | + <Or> |
| 479 | + <Class name="software.amazon.awssdk.core.util.DefaultSdkAutoConstructList"/> |
| 480 | + <Class name="software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap"/> |
| 481 | + </Or> |
| 482 | + <Bug pattern="SING_SINGLETON_IMPLEMENTS_SERIALIZABLE"/> |
| 483 | + </Match> |
| 484 | + |
| 485 | + <!-- False positive: STORAGE field is used via ThreadLocal methods. --> |
| 486 | + <Match> |
| 487 | + <Class name="software.amazon.awssdk.utilslite.SdkInternalThreadLocal"/> |
| 488 | + <Bug pattern="UUF_UNUSED_FIELD"/> |
| 489 | + </Match> |
| 490 | + |
| 491 | + <!-- No plan to fix: Final class, not vulnerable to finalizer attacks. --> |
| 492 | + <Match> |
| 493 | + <Or> |
| 494 | + <Class name="software.amazon.awssdk.awscore.eventstream.EventStreamResponseHandlerFromBuilder"/> |
| 495 | + <Class name="software.amazon.awssdk.protocols.json.SdkJsonGenerator"/> |
| 496 | + </Or> |
| 497 | + <Bug pattern="CT_CONSTRUCTOR_THROW"/> |
| 498 | + </Match> |
| 499 | + |
| 500 | + <!-- No plan to fix: Static method hiding is intentional for API design. --> |
| 501 | + <Match> |
| 502 | + <Or> |
| 503 | + <Class name="software.amazon.awssdk.awscore.exception.AwsServiceException"/> |
| 504 | + <Class name="software.amazon.awssdk.awscore.internal.client.config.AwsClientOptionValidation"/> |
| 505 | + </Or> |
| 506 | + <Bug pattern="HSM_HIDING_METHOD"/> |
| 507 | + </Match> |
| 508 | + |
| 509 | + <!-- No plan to fix: Codegen classes are build-time only, not vulnerable to finalizer attacks. --> |
| 510 | + <Match> |
| 511 | + <Package name="~software\.amazon\.awssdk\.codegen.*"/> |
| 512 | + <Bug pattern="CT_CONSTRUCTOR_THROW,SING_SINGLETON_HAS_NONPRIVATE_CONSTRUCTOR"/> |
| 513 | + </Match> |
| 514 | + |
| 515 | + <!-- False positive: Fields are used but SpotBugs doesn't detect usage in inner class. --> |
| 516 | + <Match> |
| 517 | + <Package name="~software\.amazon\.awssdk\.http\.urlconnection.*"/> |
| 518 | + <Bug pattern="UUF_UNUSED_FIELD,CT_CONSTRUCTOR_THROW,UPM_UNCALLED_PRIVATE_METHOD,BAD_TO_BUILDER"/> |
| 519 | + </Match> |
| 520 | + |
| 521 | + <!-- No plan to fix: Service loader class. --> |
| 522 | + <Match> |
| 523 | + <Class name="software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService"/> |
| 524 | + <Bug pattern="CT_CONSTRUCTOR_THROW"/> |
| 525 | + </Match> |
366 | 526 | </FindBugsFilter> |
0 commit comments