- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 284 for safety (0.04 seconds)
-
CLAUDE.md
## Important Notes for AI Assistants 1. **Resource Management**: Always use try-with-resources with `CurlResponse`. 2. **Null Safety**: Constructors validate null arguments. Follow this pattern. 3. **Thread Safety**: `RequestProcessor` is single-use per request. 4. **Encoding**: Call `encoding()` before `param()` methods.
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Jan 08 07:28:24 GMT 2026 - 4.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
protected static final String JAVABIN = "javabin"; /** Constant for Kryo serializer type. */ protected static final String KRYO = "kryo"; /** ThreadLocal container for Kryo instances to ensure thread safety. */ protected final ThreadLocal<Kryo> kryoThreadLocal; /** * Constructs a new DataSerializer. * <p> * Initializes the ThreadLocal Kryo instances with appropriate configuration.
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 10 01:54:09 GMT 2026 - 10.5K bytes - Click Count (3) -
architecture/standards/0002-avoid-using-java-serialization.md
- **Cross-Language Compatibility:** Java serialization is inherently Java-centric and does not support cross-language scenarios well. - **Type Safety:** Java serialization does not enforce type safety as strictly as some alternatives, potentially leading to runtime errors. ## Decision We do not use Java serialization.
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 05 14:05:45 GMT 2026 - 2.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
java.lang.reflect.Modifier.isStatic(method.getModifiers())); } } } @Test public void test_generic_type_safety() { // Test generic type safety of getObject method // Since we're in test environment without request context, this will return null String stringResult = WebApiUtil.getObject("testString");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java
import org.codelibs.fess.unit.UnitFessTestCase; import org.dbflute.optional.OptionalThing; import org.junit.jupiter.api.Test; /** * Concurrency and thread-safety tests for RankFusionProcessor. * Tests the improvements made to thread safety using CopyOnWriteArrayList. */ public class RankFusionProcessorConcurrencyTest extends UnitFessTestCase { private static final String ID_FIELD = "_id"; /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/LruHashMap.java
* <p> * <strong>Thread-Safety:</strong> This class is <strong>NOT thread-safe</strong>. * It extends {@link LinkedHashMap} without synchronization. If multiple threads access * an instance concurrently, and at least one thread modifies the map structurally, * it must be synchronized externally. * </p> * <p> * For thread-safe usage, wrap with {@link java.util.Collections#synchronizedMap(Map)}: * </p>
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java
import org.codelibs.fess.unit.UnitFessTestCase; import org.junit.jupiter.api.Test; public class UserRoleLoginExceptionTest extends UnitFessTestCase { // Mock subclass of RootAction for testing generic type safety private static class TestAction extends RootAction { // Test subclass } // Another mock subclass for testing private static class AdminAction extends RootAction {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java
return boundary; } }; } // #for_now jflute to suppress CVE-2014-0050 even if commons-fileupload is older than safety version (2024/09/08) // but if you use safety version, this extension is basically unneeded (or you can use it as double check) protected void checkBoundarySize(final String contentType, final byte[] boundary) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 08:48:41 GMT 2026 - 18.9K bytes - Click Count (1) -
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java
} return exitValue; } } else { // This is a secondary timeout, a safety net. logger.warn("{} is unresponsive and could not be terminated within the safety timeout.", getName()); if (!task.isExecuted()) { task.run(); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jan 01 12:47:47 GMT 2026 - 16.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java
assertNotNull(provider2.providePrimaryOneWayCryptographer()); assertNotSame(provider1.providePrimaryOneWayCryptographer(), provider2.providePrimaryOneWayCryptographer()); } // Test thread safety @Test public void test_threadSafety() { // Test that the provider returns the same instances in multi-threaded environment final int threadCount = 10;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.2K bytes - Click Count (0)