Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JENKINS-43507] Preach what I practice
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
docs/implementation.adoc
|
@@ -570,7 +570,7 @@ public class MySCMSource extends SCMSource { |
|
|
|
|
|
@NonNull |
|
|
public List<SCMSourceTrait> getTraits() { |
|
|
return new ArrayList<>(traits); |
|
|
return Collections.unmodifiableList(traits); |
|
|
} |
|
|
|
|
|
@DataBoundSetter |
|
@@ -1106,7 +1106,7 @@ public class MySCMNavigator extends SCMNavigator { |
|
|
|
|
|
@NonNull |
|
|
public List<SCMTrait<?>> getTraits() { |
|
|
return new ArrayList<>(traits); |
|
|
return Collections.unmodifiableList(traits); |
|
|
} |
|
|
|
|
|
@DataBoundSetter |
|
|