Skip to content

Commit

Permalink
fix: prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KaziNizamul committed Nov 21, 2023
1 parent cae435b commit 7c8e54b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/github/jhipster/online/domain/Jdl.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public class Jdl implements Serializable {
@JsonIgnore
private JdlMetadata jdlMetadata;

// jhipster-needle-entity-add-field - Jhipster will add fields here, do not remove
// jhipster-needle-entity-add-field - Jhipster will add fields here, do not
// remove
public Long getId() {
return id;
}
Expand Down Expand Up @@ -122,4 +123,4 @@ public int hashCode() {
public String toString() {
return "JdlMetadata{" + "id=" + getId() + "}";
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/io/github/jhipster/online/domain/YoRC.java
Original file line number Diff line number Diff line change
Expand Up @@ -872,4 +872,4 @@ public String toString() {

return basicInfo + dateTimeInfo + serverInfo + databaseInfo + serviceInfo + clientInfo + applicationInfo + testingInfo;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ public List<TemporalDistributionDTO> getFieldCount(Instant after, EntityStatColu

return QueryUtil.createDistributionQueryAndCollectData(after, dbTemporalFunction, query, entityManager);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void pushNewApplicationToGit(User user, File workingDir, String organizat
remoteAddCommand.setUri(urIish);
} else if (gitProvider.equals(GitProvider.GITLAB)) {
URIish urIish = new URIish(applicationProperties.getGitlab().getHost() + "/" + organization + "/" + applicationName + ".git")
.setPass(user.getGitlabOAuthToken());
.setPass(user.getGitlabOAuthToken());
remoteAddCommand.setUri(urIish);
}
remoteAddCommand.call();
Expand Down Expand Up @@ -162,4 +162,4 @@ private CredentialsProvider getCredentialProvider(User user, GitProvider gitProv
}
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ public List<TemporalCountDTO> getFieldCount(Instant after, SubGenEventType field
public List<TemporalDistributionDTO> getDeploymentToolDistribution(Instant after, TemporalValueType dbTemporalFunction) {
return subGenEventStatisticsService.getDeploymentToolDistribution(after, dbTemporalFunction);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* limitations under the License.
*/

package io.github.jhipster.online.service.util;
package io.github.jhipster.online.service.util;

import io.github.jhipster.online.domain.SubGenEvent;
import io.github.jhipster.online.domain.SubGenEvent_;
Expand Down Expand Up @@ -73,11 +73,12 @@ public List<TemporalCountDTO> getFieldCount(Instant after, SubGenEventType field
.setParameter(QueryUtil.TYPE, field.getDatabaseValue())
.getResultList()
.stream()
.map(entry ->
new TemporalCountDTO(
TemporalValueType.absoluteMomentToInstant(entry.getMoment().longValue(), dbTemporalFunction),
entry.getCount()
)
.map(
entry ->
new TemporalCountDTO(
TemporalValueType.absoluteMomentToInstant(entry.getMoment().longValue(), dbTemporalFunction),
entry.getCount()
)
)
.collect(Collectors.toList());
}
Expand Down Expand Up @@ -109,4 +110,4 @@ public List<TemporalDistributionDTO> getDeploymentToolDistribution(Instant after

return result;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ public void setAccessToken(String accessToken) {
) {
Optional<GitProvider> maybeGitProvider = GitProvider.getGitProviderByValue(gitProvider);
return maybeGitProvider
.<ResponseEntity>map(gitProvider1 ->
new ResponseEntity<>(this.userService.getProjects(companyName, gitProvider1), HttpStatus.OK)
.<ResponseEntity>map(
gitProvider1 -> new ResponseEntity<>(this.userService.getProjects(companyName, gitProvider1), HttpStatus.OK)
)
.orElseGet(() -> new ResponseEntity<>(HttpStatus.NOT_FOUND));
}
Expand All @@ -358,4 +358,4 @@ public void setAccessToken(String accessToken) {

return new ResponseEntity<>(result, HttpStatus.OK);
}
}
}

0 comments on commit 7c8e54b

Please sign in to comment.