- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for assertArgumentNotEmpty (0.27 seconds)
-
src/main/java/org/codelibs/core/io/FileUtil.java
* @return The text read from the file. */ public static String readText(final String path, final String encoding) { assertArgumentNotEmpty("path", path); assertArgumentNotEmpty("encoding", encoding); final URL url = ResourceUtil.getResource(path); if (url.getProtocol().equals("file")) { return readText(URLUtil.toFile(url), encoding);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/log/Logger.java
package org.codelibs.core.log; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.collection.CollectionsUtil.newHashMap; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.util.Map; import org.codelibs.core.exception.ClIllegalArgumentException; import org.codelibs.core.message.MessageFormatter;
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.io; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputFilter;
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 8.9K bytes - Click Count (0) -
CLAUDE.md
- **Constants classes**: Same pattern ### Argument Validation Use `AssertionUtil` at method entry: - `AssertionUtil.assertArgumentNotNull("argName", value)` - `AssertionUtil.assertArgumentNotEmpty("argName", value)` ### Exception Handling - Wrap checked exceptions in runtime exceptions from `org.codelibs.core.exception` - Use error codes (e.g., "ECL0008" = null argument) ### Test Structure
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Mar 12 03:38:56 GMT 2026 - 3K bytes - Click Count (0)