You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ro...@apache.org on 2026/05/17 22:27:30 UTC

(axis-axis2-java-core) 04/04: AXIS2-5904 Add Javadoc to PolicySubject.getVersion()

This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit efa70b71c2251131ac658afaa32b10b1843e1961
Author: Robert Lazarski <ro...@gmail.com>
AuthorDate: Sun May 17 11:57:40 2026 -1000

    AXIS2-5904 Add Javadoc to PolicySubject.getVersion()
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <no...@anthropic.com>
---
 modules/kernel/src/org/apache/axis2/description/PolicySubject.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/kernel/src/org/apache/axis2/description/PolicySubject.java b/modules/kernel/src/org/apache/axis2/description/PolicySubject.java
index bdfbc3e940..79ba92d950 100644
--- a/modules/kernel/src/org/apache/axis2/description/PolicySubject.java
+++ b/modules/kernel/src/org/apache/axis2/description/PolicySubject.java
@@ -120,6 +120,13 @@ public class PolicySubject {
         this.version = VERSION_COUNTER.incrementAndGet();
     }
 
+    /**
+     * Returns the current version of the policy set, represented by a
+     * monotonically increasing number. This version number changes every
+     * time a policy is attached, detached, updated, or cleared.
+     *
+     * @return the current policy version
+     */
     public long getVersion() {
         return version;
     }