Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed Feb 5, 2025
1 parent b84221f commit af466cb
Show file tree
Hide file tree
Showing 29 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ protected List<Object> customConverters() {
);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ public class CommentsDocument {

@Field
List<String> comments;

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public CommentsKey convert(String source) {
return new CommentsKey(pageId, threadId);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface CommentsRepository extends AerospikeRepository<CommentsDocument, CommentsKey> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ protected List<Object> customConverters() {
);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public ArticleDocument convert(AerospikeReadData source) {
return new ArticleDocument(id, author, content, draft);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ public class ArticleDocument {

@Id
String id;

String author;

String content;

boolean draft;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface ArticleRepository extends AerospikeRepository<ArticleDocument, String> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface UserRepository extends AerospikeRepository<UserDocument, Long> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
@EnableAerospikeRepositories(basePackageClasses = MovieRepository.class)
public class AerospikeConfiguration extends AbstractAerospikeDataConfiguration {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
@Configuration
public class AerospikeRetryConfiguration {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public class MovieDocument {
@Version // <9>
@NonFinal
long version;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface MovieRepository extends AerospikeRepository<MovieDocument, String> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ private Movie update(String name, Function<MovieDocument, MovieDocument> updateF
private Movie toMovie(MovieDocument doc) {
return new Movie(doc.getName(), doc.getDescription(), doc.getRating());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public class IndexedMovieDocument {

@Field
double rating;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface IndexedDocumentRepository extends AerospikeRepository<IndexedDocument, String> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
@EnableAerospikeRepositories(basePackageClasses = WatchedMoviesDocumentRepository.class)
public class AerospikeConfiguration extends AbstractAerospikeDataConfiguration {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
@Configuration
public class AerospikeRetryConfiguration {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface WatchedMoviesDocumentRepository extends AerospikeRepository<WatchedMoviesDocument, String> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
public class AerospikeConfiguration extends AbstractAerospikeDataConfiguration {

}

Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public class MovieDocument {

@Field
double rating;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface MovieRepository extends AerospikeRepository<MovieDocument, String> { // <1>

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
public class AerospikeConfiguration extends AbstractAerospikeDataConfiguration {

}

Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
import org.springframework.data.aerospike.repository.AerospikeRepository;

public interface UserRepository extends AerospikeRepository<User, Integer> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ void convertToCommentsKey_failsWithExceptionWhenInvalidString() {
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Key can not be parsed: foobar");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ void getAndSaveComments() {
Optional<CommentsDocument> actual = repository.findById(key);
assertThat(actual).hasValue(document);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ void savesAndReadsUsingCustomConverter() {
assertThat(repository.findById(id))
.hasValue(new UserDocument(id, new UserDocument.UserData("221B BAKER STREET, LONDON", "UK")));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ void addWatchedMovie_updatesExistingWatchedMovies() {
watchedMoviesService.addWatchedMovie(id, newWatchedMovie);
assertThat(watchedMoviesService.getWatchedMovies(id)).containsOnly(initialWatchedMovie, newWatchedMovie);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public void deleteExistingMovieById() {
void deleteById_doesNothingForNonExistingMovie() {
repository.deleteById(id);
}
}
}

0 comments on commit af466cb

Please sign in to comment.