Home
last modified time | relevance | path

Searched +full:new +full:- +full:object (Results 1 – 25 of 1449) sorted by relevance

12345678910>>...58

/external/nullaway/nullaway/src/test/resources/com/uber/nullaway/testdata/
DNullAwayTryFinallyCases.java32 public void tryFinallyMininal(@Nullable Object o) { in tryFinallyMininal()
40 public void tryFinallyMininalRet(@Nullable Object o) { in tryFinallyMininalRet()
49 public void tryFinallyMininalThrow(@Nullable Object o) { in tryFinallyMininalThrow()
51 throw new Error(); in tryFinallyMininalThrow()
58 public void tryFinallyThrowWFix(@Nullable Object o) { in tryFinallyThrowWFix()
60 o = new Object(); in tryFinallyThrowWFix()
61 throw new Error(); in tryFinallyThrowWFix()
72 public void tryFinallyThrowWFix2(@Nullable Object o) { in tryFinallyThrowWFix2()
73 o = new Object(); in tryFinallyThrowWFix2()
75 throw new Error(); in tryFinallyThrowWFix2()
[all …]
DNullAwayNegativeCases.java42 public Object doesNotReturnNull() { in doesNotReturnNull()
43 return new Object(); in doesNotReturnNull()
46 public Object assignmentExpression() { in assignmentExpression()
47 Object x = null; in assignmentExpression()
48 return (x = new Object()); in assignmentExpression()
53 Inner inner = new Inner(); in assignmentExpression2()
62 public Object returnsNullButAnnotatedWithNullable() { in returnsNullButAnnotatedWithNullable()
66 public Object methodWrapper() { in methodWrapper()
70 static Object sField = new Object();
72 public Object returnNonNullField() { in returnNonNullField()
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
64 Object src = new Object(); in testConstructor_Normal()
65 new PropertyChangeSupport(src); in testConstructor_Normal()
73 Object src = new Object(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
74 PropertyChangeSupport sup = new PropertyChangeSupport(src); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
75 PropertyChangeListener l1 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
76 PropertyChangeListener l2 = new MockPropertyChangeListener(); in testAddPropertyChangeListener_PropertyChangeListener_Normal()
77 PropertyChangeListener l3 = new PropertyChangeListenerProxy("myProp", in testAddPropertyChangeListener_PropertyChangeListener_Normal()
79 PropertyChangeListener l4 = new PropertyChangeListenerProxy("myProp", in testAddPropertyChangeListener_PropertyChangeListener_Normal()
109 Object src = new Object(); in testAddPropertyChangeListener_PropertyChangeListener_Null()
[all …]
DPropertyChangeEventTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
36 Object src = new Object(); in testConstructor_Normal()
37 Object oldValue = new Object(); in testConstructor_Normal()
38 Object newValue = new Object(); in testConstructor_Normal()
40 PropertyChangeEvent event = new PropertyChangeEvent(src, "myPropName", in testConstructor_Normal()
53 Object src = new Object(); in testConstructor_Null()
54 PropertyChangeEvent event = new PropertyChangeEvent(src, null, null, in testConstructor_Null()
64 * Test the constructor with null properties but non-null old and new
68 Object src = new Object(); in testConstructor_NullProperty()
69 Object oldValue = new Object(); in testConstructor_NullProperty()
[all …]
/external/guava/android/guava-tests/test/com/google/common/cache/
DAbstractLoadingCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
37 final Exception cause = new Exception(); in testGetUnchecked_checked()
38 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked()
39 LoadingCache<Object, Object> cache = in testGetUnchecked_checked()
40 new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_checked()
42 public Object get(Object key) throws ExecutionException { in testGetUnchecked_checked()
43 Object v = valueRef.get(); in testGetUnchecked_checked()
45 throw new ExecutionException(cause); in testGetUnchecked_checked()
51 public @Nullable Object getIfPresent(Object key) { in testGetUnchecked_checked()
57 assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object())); in testGetUnchecked_checked()
[all …]
DCacheLoadingTest.java7 * http://www.apache.org/licenses/LICENSE-2.0
70 logHandler = new TestLogHandler(); in setUp()
103 LoadingCache<Object, Object> cache = in testLoad()
111 Object key = new Object(); in testLoad()
119 key = new Object(); in testLoad()
127 key = new Object(); in testLoad()
143 Object value = new Object(); in testLoad()
145 assertSame(key, cache.get(key, throwing(new Exception()))); in testLoad()
152 key = new Object(); in testLoad()
162 final Object one = new Object(); in testReload()
[all …]
DLocalCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
103 TestSuite suite = new TestSuite(); in suite()
106 ConcurrentMapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder())) in suite()
115 new TestStringCacheGenerator(createCacheBuilder().concurrencyLevel(1))) in suite()
124 new TestStringCacheGenerator(createCacheBuilder().maximumSize(Integer.MAX_VALUE))) in suite()
133 new TestStringCacheGenerator( in suite()
136 .weigher(new SerializableWeigher<String, String>()))) in suite()
145 new TestStringCacheGenerator(createCacheBuilder().weakKeys())) in suite()
154 new TestStringCacheGenerator(createCacheBuilder().weakValues())) in suite()
163 new TestStringCacheGenerator(createCacheBuilder().softValues())) in suite()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DAbstractLoadingCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
37 final Exception cause = new Exception(); in testGetUnchecked_checked()
38 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked()
39 LoadingCache<Object, Object> cache = in testGetUnchecked_checked()
40 new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_checked()
42 public Object get(Object key) throws ExecutionException { in testGetUnchecked_checked()
43 Object v = valueRef.get(); in testGetUnchecked_checked()
45 throw new ExecutionException(cause); in testGetUnchecked_checked()
51 public @Nullable Object getIfPresent(Object key) { in testGetUnchecked_checked()
57 assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(new Object())); in testGetUnchecked_checked()
[all …]
DCacheLoadingTest.java7 * http://www.apache.org/licenses/LICENSE-2.0
70 logHandler = new TestLogHandler(); in setUp()
103 LoadingCache<Object, Object> cache = in testLoad()
111 Object key = new Object(); in testLoad()
119 key = new Object(); in testLoad()
127 key = new Object(); in testLoad()
143 Object value = new Object(); in testLoad()
145 assertSame(key, cache.get(key, throwing(new Exception()))); in testLoad()
152 key = new Object(); in testLoad()
162 final Object one = new Object(); in testReload()
[all …]
DLocalCacheTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
104 TestSuite suite = new TestSuite(); in suite()
107 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder())) in suite()
116 new TestStringCacheGenerator(createCacheBuilder().concurrencyLevel(1))) in suite()
125 new TestStringCacheGenerator(createCacheBuilder().maximumSize(Integer.MAX_VALUE))) in suite()
134 new TestStringCacheGenerator( in suite()
137 .weigher(new SerializableWeigher<String, String>()))) in suite()
145 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().weakKeys())) in suite()
153 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().weakValues())) in suite()
161 MapTestSuiteBuilder.using(new TestStringCacheGenerator(createCacheBuilder().softValues())) in suite()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DGameObjectFactory.java8 * http://www.apache.org/licenses/LICENSE-2.0
29 * This should really be replaced with something that is data-driven, but it is hard to do data
36 …private final static ComponentPoolComparator sComponentPoolComparator = new ComponentPoolComparato…
54 // objects must match the order of the object tileset in the level editor in order for the
57 INVALID(-1),
135 // Special Objects -- Not spawnable normally
136 SMOKE_BIG(-1),
137 SMOKE_SMALL(-1),
139 CRUSH_FLASH(-1),
140 FLASH(-1),
[all …]
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageFactoryImpl.java14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
59 private static String defaultContentEncodingCharset = "UTF-8";
80 * This is for testing -- allows you to generate invalid requests
87 * Creates a new instance of MessageFactoryImpl
93 * Creates a new Request message of type specified by the method paramater,
95 * with a body in the form of a Java object and the body content type.
97 * @param requestURI -
98 * the new URI object of the requestURI value of this Message.
99 * @param method -
100 * the new string of the method value of this Message.
[all …]
/external/antlr/runtime/ObjC/Framework/examples/simplecTreeParser/
DSimpleCParser.java1 … Aug 13, 2010 19:41:25 /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/simplecTreeParser/Simp…
12 public static final String[] tokenNames = new String[] {
29 public static final int EOF=-1;
45 this(input, new RecognizerSharedState()); in SimpleCParser()
52 protected TreeAdaptor adaptor = new CommonTreeAdaptor();
62 …public String getGrammarFileName() { return "/usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/… in getGrammarFileName()
66 Object tree;
67 public Object getTree() { return tree; } in getTree()
71 …// /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/simplecTreeParser/SimpleC.g:16:1: program …
73 SimpleCParser.program_return retval = new SimpleCParser.program_return(); in program()
[all …]
/external/robolectric/sandbox/src/main/java/org/robolectric/interceptors/
DAndroidInterceptors.java40 new ArrayList<>( in all()
42 new LinkedHashMapEldestInterceptor(), in all()
43 new SystemTimeInterceptor(), in all()
44 new SystemArrayCopyInterceptor(), in all()
45 new LocaleAdjustLanguageCodeInterceptor(), in all()
46 new SystemLogInterceptor(), in all()
47 new FileDescriptorInterceptor(), in all()
48 new NoOpInterceptor(), in all()
49 new SocketInterceptor(), in all()
50 new ReferenceRefersToInterceptor(), in all()
[all …]
/external/ow2-asm/asm-test/src/resources/java/jdk8/
DAllFrames.java2 // Copyright (c) 2000-2011 INRIA, France Telecom
34 * compiled with "javac -g -parameters".
38 Object o;
42 public AllFrames(Object o, String s) { in AllFrames()
56 return new AllFrames(null, s == null ? "" : s); in create()
60 // Element types: primitive types and object.
70 Object o, in m0()
71 Object[] p, in m0()
72 Object[][] q) { in m0()
74 ? m0(!b, y, c, s, i - 1, f - 1f, l - 1l, d - 1d, o, p, q) in m0()
[all …]
/external/libnl/lib/
Dobject.c1 /* SPDX-License-Identifier: LGPL-2.1-only */
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
8 * @defgroup object Object (Cacheable)
10 * Generic object data type, for inheritance purposes to implement cacheable
18 * ------
20 * #include <netlink/object.h>
24 #include "nl-default.h"
28 #include <netlink/object.h>
31 #include "nl-core.h"
32 #include "nl-priv-dynamic-core/nl-core.h"
[all …]
/external/deqp/framework/delibs/decpp/
DdeSharedPtr.cpp1 /*-------------------------------------------------------------------------
3 * -----------------------------
11 * http://www.apache.org/licenses/LICENSE-2.0
22 *//*--------------------------------------------------------------------*/
41 class Object class
44 Object(bool &exists) : m_exists(exists) in Object() function in de::__anon47bce39f0111::Object
49 virtual ~Object(void) in ~Object()
58 class DerivedObject : public Object
61 DerivedObject(bool &exists) : Object(exists) in DerivedObject()
69 …SharedPtrTestThread(const SharedPtr<Object> &ptr, const bool &exists) : m_ptr(ptr), m_exists(exist… in SharedPtrTestThread()
[all …]
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTreeAdaptor.as18 public function nil():Object {
34 e:RecognitionException):Object {
35 var t:CommonErrorNode = new CommonErrorNode(input, start, stop, e);
40 public function isNil(tree:Object):Boolean {
44 public function dupTree(tree:Object):Object {
52 public function dupTreeWithParent(t:Object, parent:Object):Object {
56 var newTree:Object = dupNode(t);
57 // ensure new subtree root has parent/child index set
58 setChildIndex(newTree, getChildIndex(t)); // same index in new tree
62 var child:Object = getChild(t, i);
[all …]
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/builder/
DJsonToStringStyleTest.java9 * http://www.apache.org/licenses/LICENSE-2.0
56 assertEquals("null", new ToStringBuilder(null).toString()); in testNull()
61 assertEquals("{}", new ToStringBuilder(base).toString()); in testBlank()
68 new ToStringBuilder(base).appendSuper( in testAppendSuper()
73 new ToStringBuilder(base).appendSuper( in testAppendSuper()
78 new ToStringBuilder(base) in testAppendSuper()
84 new ToStringBuilder(base) in testAppendSuper()
89 assertEquals("{\"a\":\"hello\"}", new ToStringBuilder(base) in testAppendSuper()
92 assertEquals("{\"a\":\"hello\",\"b\":\"world\"}", new ToStringBuilder(base) in testAppendSuper()
98 …assertThrows(UnsupportedOperationException.class, () -> new ToStringBuilder(base).append('A').toSt… in testChar()
[all …]
/external/nullaway/nullaway/src/test/java/com/uber/nullaway/
DNullAwaySerializationTest.java70 new SerializationV3Adapter().getErrorsOutputFileHeader();
76 values -> { in NullAwaySerializationTest()
79 "Needs exactly 10 values to create FixDisplay object but found: " + values.length); in NullAwaySerializationTest()
82 return new FixDisplay( in NullAwaySerializationTest()
91 values -> { in NullAwaySerializationTest()
94 "Needs exactly 12 values to create ErrorDisplay object but found: " + values.length); in NullAwaySerializationTest()
95 return new ErrorDisplay( in NullAwaySerializationTest()
110 values -> { in NullAwaySerializationTest()
113 "Needs exactly 7 values to create FieldInitDisplay object but found: " in NullAwaySerializationTest()
115 return new FieldInitDisplay( in NullAwaySerializationTest()
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/processor/
DXSLTSchema.java10 * http://www.apache.org/licenses/LICENSE-2.0
19 * $Id: XSLTSchema.java 476466 2006-11-18 08:22:31Z minchau $
82 XSLTAttributeDef hrefAttr = new XSLTAttributeDef(null, "href", in build()
85 // xsl:preserve-space, xsl:strip-space in build()
86 XSLTAttributeDef elementsAttr = new XSLTAttributeDef(null, "elements", in build()
90 // XSLTAttributeDef anyNamespacedAttr = new XSLTAttributeDef("*", "*", in build()
94 XSLTAttributeDef methodAttr = new XSLTAttributeDef(null, "method", in build()
96 XSLTAttributeDef versionAttr = new XSLTAttributeDef(null, "version", in build()
98 XSLTAttributeDef encodingAttr = new XSLTAttributeDef(null, "encoding", in build()
100 XSLTAttributeDef omitXmlDeclarationAttr = new XSLTAttributeDef(null, in build()
[all …]
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DReturnsArgumentAtTest.java21 assertThat(new ReturnsArgumentAt(0).answer(invocationWith("A", "B"))).isEqualTo("A"); in should_be_able_to_return_the_first_parameter()
27 assertThat(new ReturnsArgumentAt(1).answer(invocationWith("A", "B", "C"))).isEqualTo("B"); in should_be_able_to_return_the_second_parameter()
32 assertThat(new ReturnsArgumentAt(-1).answer(invocationWith("A"))).isEqualTo("A"); in should_be_able_to_return_the_last_parameter()
33 assertThat(new ReturnsArgumentAt(-1).answer(invocationWith("A", "B"))).isEqualTo("B"); in should_be_able_to_return_the_last_parameter()
38 assertThat(new ReturnsArgumentAt(0).answer(invocationWith("A", "B", "C"))).isEqualTo("A"); in should_be_able_to_return_the_specified_parameter()
39 assertThat(new ReturnsArgumentAt(1).answer(invocationWith("A", "B", "C"))).isEqualTo("B"); in should_be_able_to_return_the_specified_parameter()
40 assertThat(new ReturnsArgumentAt(2).answer(invocationWith("A", "B", "C"))).isEqualTo("C"); in should_be_able_to_return_the_specified_parameter()
46new ReturnsArgumentAt(1).validateFor(new InvocationBuilder().method("varargsReturningString") in should_identify_bad_parameter_type_for_invocation()
47 .argTypes(Object[].class) in should_identify_bad_parameter_type_for_invocation()
48 … .args(new Object(), new Object(), new Object()) in should_identify_bad_parameter_type_for_invocation()
[all …]
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/
DInvalidEventHandlerTestCase.java12 * http://www.apache.org/licenses/LICENSE-2.0
48 // @@ VELOCITY-553
57 return new String("helloFooRealStr"); in getRealString()
61 return new String("helloFoo"); in getString()
74 StringBuilder builder = new StringBuilder(); in toString()
81 // @@ VELOCITY-553
94 return new TestSuite(InvalidEventHandlerTestCase.class); in suite()
100 TestEventCartridge te = new TestEventCartridge(); in testManualEventHandlers()
105 VelocityEngine ve = new VelocityEngine(); in testManualEventHandlers()
112 VelocityContext inner = new VelocityContext(); in testManualEventHandlers()
[all …]
/external/guava/guava/src/com/google/common/base/
DPreconditions.java7 * http://www.apache.org/licenses/LICENSE-2.0
35 * throw new IllegalArgumentException("input is negative: " + value);
54 * double d = sqrt(-1.0);
82 * <h3>Non-preconditions</h3>
89 * similar to those in this class for non-precondition checks.
94 * java.util.Objects#requireNonNull(Object)}. Instead, use whichever of {@link
95 * #checkNotNull(Object)} or {@link Verify#verifyNotNull(Object)} is appropriate to the situation.
96 * (The same goes for the message-accepting overloads.)
129 throw new IllegalArgumentException(); in checkArgument()
138 * string using {@link String#valueOf(Object)}
[all …]
/external/guava/android/guava/src/com/google/common/base/
DPreconditions.java7 * http://www.apache.org/licenses/LICENSE-2.0
35 * throw new IllegalArgumentException("input is negative: " + value);
54 * double d = sqrt(-1.0);
82 * <h3>Non-preconditions</h3>
89 * similar to those in this class for non-precondition checks.
94 * java.util.Objects#requireNonNull(Object)}. Instead, use whichever of {@link
95 * #checkNotNull(Object)} or {@link Verify#verifyNotNull(Object)} is appropriate to the situation.
96 * (The same goes for the message-accepting overloads.)
129 throw new IllegalArgumentException(); in checkArgument()
138 * string using {@link String#valueOf(Object)}
[all …]

12345678910>>...58