Skip to content

Commit db99b3c

Browse files
committed
fix: indentation
1 parent c3cff4d commit db99b3c

1 file changed

Lines changed: 110 additions & 102 deletions

File tree

src/main/java/org/apache/commons/release/plugin/slsa/v1_2/RunDetails.java

Lines changed: 110 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -30,108 +30,116 @@
3030
@JsonInclude(JsonInclude.Include.NON_NULL)
3131
public class RunDetails {
3232

33-
/** Entity that executed the build. */
34-
@JsonProperty("builder")
35-
private Builder builder;
36-
37-
/** Metadata about the build invocation. */
38-
@JsonProperty("metadata")
39-
private BuildMetadata metadata;
40-
41-
/** Artifacts produced as a side effect of the build. */
42-
@JsonProperty("byproducts")
43-
private List<ResourceDescriptor> byproducts;
44-
45-
/** Creates a new RunDetails instance. */
46-
public RunDetails() {
47-
}
48-
49-
/**
50-
* Creates a new RunDetails with the given builder and metadata.
51-
*
52-
* @param builder entity that executed the build
53-
* @param metadata metadata about the build invocation
54-
*/
55-
public RunDetails(Builder builder, BuildMetadata metadata) {
56-
this.builder = builder;
57-
this.metadata = metadata;
58-
}
59-
60-
/**
61-
* Gets the builder that executed the invocation.
62-
*
63-
* <p>Trusted to have correctly performed the operation and populated this provenance.</p>
64-
*
65-
* @return the builder, or {@code null} if not set
66-
*/
67-
public Builder getBuilder() {
68-
return builder;
69-
}
70-
71-
/**
72-
* Sets the builder that executed the invocation.
73-
*
74-
* @param builder the builder
75-
*/
76-
public void setBuilder(Builder builder) {
77-
this.builder = builder;
78-
}
79-
80-
/**
81-
* Gets the metadata about the build invocation, including its identifier and timing.
82-
*
83-
* @return the build metadata, or {@code null} if not set
84-
*/
85-
public BuildMetadata getMetadata() {
86-
return metadata;
87-
}
88-
89-
/**
90-
* Sets the metadata about the build invocation.
91-
*
92-
* @param metadata the build metadata
93-
*/
94-
public void setMetadata(BuildMetadata metadata) {
95-
this.metadata = metadata;
96-
}
97-
98-
/**
99-
* Gets artifacts produced as a side effect of the build that are not the primary output.
100-
*
101-
* @return the list of byproduct artifacts, or {@code null} if not set
102-
*/
103-
public List<ResourceDescriptor> getByproducts() {
104-
return byproducts;
105-
}
106-
107-
/**
108-
* Sets the artifacts produced as a side effect of the build that are not the primary output.
109-
*
110-
* @param byproducts the list of byproduct artifacts
111-
*/
112-
public void setByproducts(List<ResourceDescriptor> byproducts) {
113-
this.byproducts = byproducts;
114-
}
115-
116-
@Override
117-
public boolean equals(Object o) {
118-
if (this == o) {
119-
return true;
33+
/**
34+
* Entity that executed the build.
35+
*/
36+
@JsonProperty("builder")
37+
private Builder builder;
38+
39+
/**
40+
* Metadata about the build invocation.
41+
*/
42+
@JsonProperty("metadata")
43+
private BuildMetadata metadata;
44+
45+
/**
46+
* Artifacts produced as a side effect of the build.
47+
*/
48+
@JsonProperty("byproducts")
49+
private List<ResourceDescriptor> byproducts;
50+
51+
/**
52+
* Creates a new RunDetails instance.
53+
*/
54+
public RunDetails() {
12055
}
121-
if (o == null || getClass() != o.getClass()) {
122-
return false;
56+
57+
/**
58+
* Creates a new RunDetails with the given builder and metadata.
59+
*
60+
* @param builder entity that executed the build
61+
* @param metadata metadata about the build invocation
62+
*/
63+
public RunDetails(Builder builder, BuildMetadata metadata) {
64+
this.builder = builder;
65+
this.metadata = metadata;
66+
}
67+
68+
/**
69+
* Gets the builder that executed the invocation.
70+
*
71+
* <p>Trusted to have correctly performed the operation and populated this provenance.</p>
72+
*
73+
* @return the builder, or {@code null} if not set
74+
*/
75+
public Builder getBuilder() {
76+
return builder;
77+
}
78+
79+
/**
80+
* Sets the builder that executed the invocation.
81+
*
82+
* @param builder the builder
83+
*/
84+
public void setBuilder(Builder builder) {
85+
this.builder = builder;
86+
}
87+
88+
/**
89+
* Gets the metadata about the build invocation, including its identifier and timing.
90+
*
91+
* @return the build metadata, or {@code null} if not set
92+
*/
93+
public BuildMetadata getMetadata() {
94+
return metadata;
95+
}
96+
97+
/**
98+
* Sets the metadata about the build invocation.
99+
*
100+
* @param metadata the build metadata
101+
*/
102+
public void setMetadata(BuildMetadata metadata) {
103+
this.metadata = metadata;
104+
}
105+
106+
/**
107+
* Gets artifacts produced as a side effect of the build that are not the primary output.
108+
*
109+
* @return the list of byproduct artifacts, or {@code null} if not set
110+
*/
111+
public List<ResourceDescriptor> getByproducts() {
112+
return byproducts;
113+
}
114+
115+
/**
116+
* Sets the artifacts produced as a side effect of the build that are not the primary output.
117+
*
118+
* @param byproducts the list of byproduct artifacts
119+
*/
120+
public void setByproducts(List<ResourceDescriptor> byproducts) {
121+
this.byproducts = byproducts;
122+
}
123+
124+
@Override
125+
public boolean equals(Object o) {
126+
if (this == o) {
127+
return true;
128+
}
129+
if (o == null || getClass() != o.getClass()) {
130+
return false;
131+
}
132+
RunDetails that = (RunDetails) o;
133+
return Objects.equals(builder, that.builder) && Objects.equals(metadata, that.metadata) && Objects.equals(byproducts, that.byproducts);
134+
}
135+
136+
@Override
137+
public int hashCode() {
138+
return Objects.hash(builder, metadata, byproducts);
139+
}
140+
141+
@Override
142+
public String toString() {
143+
return "RunDetails{builder=" + builder + ", metadata=" + metadata + ", byproducts=" + byproducts + '}';
123144
}
124-
RunDetails that = (RunDetails) o;
125-
return Objects.equals(builder, that.builder) && Objects.equals(metadata, that.metadata) && Objects.equals(byproducts, that.byproducts);
126-
}
127-
128-
@Override
129-
public int hashCode() {
130-
return Objects.hash(builder, metadata, byproducts);
131-
}
132-
133-
@Override
134-
public String toString() {
135-
return "RunDetails{builder=" + builder + ", metadata=" + metadata + ", byproducts=" + byproducts + '}';
136-
}
137145
}

0 commit comments

Comments
 (0)