projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🔥 Remove obsolete functions
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
SimpleFieldSetBuilder.java
diff --git
a/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java
b/src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java
index
1d57454
..
48eb4bf
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java
+++ b/
src/main/java/net/pterodactylus/sone/freenet/SimpleFieldSetBuilder.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - SimpleFieldSetBuilder.java - Copyright © 2011 David Roden
+ * Sone - SimpleFieldSetBuilder.java - Copyright © 2011
–2019
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-17,13
+17,12
@@
package net.pterodactylus.sone.freenet;
package net.pterodactylus.sone.freenet;
-import net.pterodactylus.util.validation.Validation;
+import static com.google.common.base.Preconditions.checkNotNull;
+
import freenet.support.SimpleFieldSet;
/**
* Helper class to construct {@link SimpleFieldSet} objects in a single call.
import freenet.support.SimpleFieldSet;
/**
* Helper class to construct {@link SimpleFieldSet} objects in a single call.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class SimpleFieldSetBuilder {
*/
public class SimpleFieldSetBuilder {
@@
-46,8
+45,7
@@
public class SimpleFieldSetBuilder {
* The simple field set to build
*/
public SimpleFieldSetBuilder(SimpleFieldSet simpleFieldSet) {
* The simple field set to build
*/
public SimpleFieldSetBuilder(SimpleFieldSet simpleFieldSet) {
- Validation.begin().isNotNull("Simple Field Set", simpleFieldSet).check();
- this.simpleFieldSet = simpleFieldSet;
+ this.simpleFieldSet = checkNotNull(simpleFieldSet, "simpleFieldSet must not be null");
}
/**
}
/**