- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 75 for assertArgumentNotNull (0.64 seconds)
-
src/main/java/org/codelibs/core/xml/DomUtil.java
* @param buf * The string buffer. Must not be {@literal null}. */ public static void appendElement(final Element element, final StringBuilder buf) { assertArgumentNotNull("element", element); assertArgumentNotNull("buf", buf); final String tag = element.getTagName(); buf.append('<'); buf.append(tag); appendAttrs(element.getAttributes(), buf);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 10.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/misc/DisposableUtil.java
*/ package org.codelibs.core.misc; import static org.codelibs.core.collection.CollectionsUtil.newLinkedList; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.beans.Introspector; import java.util.Deque; /** * Utility class for disposing of resources at the end of an application. * <p>
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/nio/ChannelUtil.java
* @return A {@link ByteBuffer} that maps the file channel to memory. */ public static ByteBuffer map(final FileChannel channel, final MapMode mode) { assertArgumentNotNull("channel", channel); assertArgumentNotNull("mode", mode); try { return channel.map(mode, 0, channel.size()); } catch (final IOException e) { throw new IORuntimeException(e); }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/misc/AssertionUtilTest.java
/** * Test method for * {@link org.codelibs.core.misc.AssertionUtil#assertArgumentNotNull(java.lang.String, java.lang.Object)} * . */ @Test public void testAssertArgumentNotNull() { exception.expect(NullArgumentException.class); exception.expectMessage(is("[ECL0008]argument[hoge] is null.")); assertArgumentNotNull("hoge", null); } /** * Test method forCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/CopyUtil.java
* @return the number of bytes copied */ public static int copy(final InputStream in, final OutputStream out) { assertArgumentNotNull("in", in); assertArgumentNotNull("out", out); if (in instanceof FileInputStream) { if (out instanceof FileOutputStream) { return copyInternal((FileInputStream) in, (FileOutputStream) out);Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 45.2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/IndexedIterator.java
assertArgumentNotNull("iterator", iterator); return () -> new IndexedIterator<>(iterator); } /** * Constructs an instance. * * @param iterator the iterator (must not be {@literal null}) */ public IndexedIterator(final Iterator<T> iterator) { assertArgumentNotNull("iterator", iterator); this.iterator = iterator;Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 3.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/lang/ConstructorUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.lang; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import org.codelibs.core.exception.IllegalAccessRuntimeException;
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 3.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
import static org.codelibs.core.lang.StringUtil.isEmpty; import static org.codelibs.core.lang.StringUtil.isNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.text.DateFormat; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Iterator; import java.util.Locale;
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 19.6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
* @return true if the path is safe (within the base directory), false otherwise */ public static boolean isPathSafe(final Path pathToCheck, final Path baseDirectory) { assertArgumentNotNull("pathToCheck", pathToCheck); assertArgumentNotNull("baseDirectory", baseDirectory); final Path normalizedPath = pathToCheck.toAbsolutePath().normalize(); final Path normalizedBase = baseDirectory.toAbsolutePath().normalize();
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/io/ClassTraversalUtil.java
*/ public static void forEach(final JarFile jarFile, final String prefix, final ClassHandler handler) { assertArgumentNotNull("jarFile", jarFile); assertArgumentNotNull("prefix", prefix); assertArgumentNotNull("handler", handler); final int startPos = prefix.length(); for (final JarEntry entry : iterable(jarFile.entries())) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 9.5K bytes - Click Count (0)