This package is a part of the open-source 21 | * Guava library. 22 | */ 23 | @CheckReturnValue 24 | package com.google.common.escape.testing; 25 | 26 | import javax.annotation.CheckReturnValue; 27 | -------------------------------------------------------------------------------- /guava/src/com/google/common/eventbus/SubscriberExceptionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 | * in compliance with the License. You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software distributed under the License 10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 | * or implied. See the License for the specific language governing permissions and limitations under 12 | * the License. 13 | */ 14 | package com.google.common.eventbus; 15 | 16 | /** 17 | * Handler for exceptions thrown by event subscribers. 18 | * 19 | * @since 16.0 20 | */ 21 | public interface SubscriberExceptionHandler { 22 | /** 23 | * Handles exceptions thrown by subscribers. 24 | */ 25 | void handleException(Throwable exception, SubscriberExceptionContext context); 26 | } 27 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/ForceGuavaCompilationEntryPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.common; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point to convince Maven to compile our classes. 23 | * 24 | * @author Chris Povirk 25 | */ 26 | public class ForceGuavaCompilationEntryPoint implements EntryPoint { 27 | @Override public void onModuleLoad() { 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/InterruptibleMonitorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.common.util.concurrent; 18 | 19 | /** 20 | * Tests for {@link Monitor}'s interruptible methods. 21 | * 22 | * @author Justin T. Sampson 23 | */ 24 | 25 | public class InterruptibleMonitorTest extends MonitorTestCase { 26 | 27 | public InterruptibleMonitorTest() { 28 | super(true); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingFutureTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.common.util.concurrent; 18 | 19 | import junit.framework.TestCase; 20 | 21 | /** 22 | * Unit tests for {@link ForwardingFuture} 23 | */ 24 | public class ForwardingFutureTest extends TestCase { 25 | public void testForwarding() { 26 | ForwardingObjectTester.testForwardingObject(ForwardingFuture.class); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/UninterruptibleMonitorTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.common.util.concurrent; 18 | 19 | /** 20 | * Tests for {@link Monitor}'s uninterruptible methods. 21 | * 22 | * @author Justin T. Sampson 23 | */ 24 | 25 | public class UninterruptibleMonitorTest extends MonitorTestCase { 26 | 27 | public UninterruptibleMonitorTest() { 28 | super(false); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /guava/src/com/google/common/xml/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 | * in compliance with the License. You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software distributed under the License 10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 | * or implied. See the License for the specific language governing permissions and limitations under 12 | * the License. 13 | */ 14 | 15 | /** 16 | * Escapers 17 | * for 18 | * XML. 19 | * 20 | *
This package is a part of the open-source Guava 21 | * library. 22 | */ 23 | @CheckReturnValue 24 | @ParametersAreNonnullByDefault 25 | package com.google.common.xml; 26 | 27 | import javax.annotation.CheckReturnValue; 28 | import javax.annotation.ParametersAreNonnullByDefault; 29 | -------------------------------------------------------------------------------- /guava/src/com/google/common/html/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Guava Authors 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 | * in compliance with the License. You may obtain a copy of the License at 6 | * 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * 9 | * Unless required by applicable law or agreed to in writing, software distributed under the License 10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 | * or implied. See the License for the specific language governing permissions and limitations under 12 | * the License. 13 | */ 14 | 15 | /** 16 | * Escapers 17 | * for 18 | * HTML. 19 | * 20 | *
This package is a part of the open-source Guava
21 | * library.
22 | */
23 | @CheckReturnValue
24 | @ParametersAreNonnullByDefault
25 | package com.google.common.html;
26 |
27 | import javax.annotation.CheckReturnValue;
28 | import javax.annotation.ParametersAreNonnullByDefault;
29 |
--------------------------------------------------------------------------------
/guava-tests/test/com/google/common/cache/LongAdderTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 | * in compliance with the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License
10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 | * or implied. See the License for the specific language governing permissions and limitations under
12 | * the License.
13 | */
14 |
15 | package com.google.common.cache;
16 |
17 | /**
18 | * No-op null-pointer test for {@link LongAdder} to override the {@link PackageSanityTests} version,
19 | * which checks package-private methods that we don't want to have to annotate as {@code Nullable}
20 | * because we don't want diffs from jsr166e.
21 | */
22 | public class LongAdderTest {
23 | public void testNulls() {}
24 | }
25 |
--------------------------------------------------------------------------------
/guava-tests/test/com/google/common/math/PackageSanityTests.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.math;
18 |
19 | import com.google.common.testing.AbstractPackageSanityTests;
20 |
21 | /**
22 | * Basic sanity tests for the entire package.
23 | *
24 | * @author Ben Yu
25 | */
26 |
27 | public class PackageSanityTests extends AbstractPackageSanityTests {
28 | public PackageSanityTests() {
29 | publicApiOnly();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/guava/src/com/google/common/reflect/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 | * in compliance with the License. You may obtain a copy of the License at
6 | *
7 | * http://www.apache.org/licenses/LICENSE-2.0
8 | *
9 | * Unless required by applicable law or agreed to in writing, software distributed under the License
10 | * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 | * or implied. See the License for the specific language governing permissions and limitations under
12 | * the License.
13 | */
14 |
15 | /**
16 | * This package contains utilities to work with Java reflection. It is a part of the open-source
17 | * Guava library.
18 | */
19 | @CheckReturnValue
20 | @ParametersAreNonnullByDefault
21 | package com.google.common.reflect;
22 |
23 | import javax.annotation.CheckReturnValue;
24 | import javax.annotation.ParametersAreNonnullByDefault;
25 |
--------------------------------------------------------------------------------
/guava-gwt/src/com/google/common/collect/ImmutableSet_CustomFieldSerializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect;
18 |
19 | /**
20 | * Even though {@link ImmutableSet} cannot be instantiated, we still need
21 | * a custom field serializer to unify the type signature of
22 | * {@code ImmutableSet[]} on server and client side.
23 | *
24 | * @author Hayward Chan
25 | */
26 | public final class ImmutableSet_CustomFieldSerializer {}
27 |
--------------------------------------------------------------------------------
/guava-gwt/src/com/google/common/collect/ImmutableList_CustomFieldSerializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect;
18 |
19 | /**
20 | * Even though {@link ImmutableList} cannot be instantiated, we still need
21 | * a custom field serializer to unify the type signature of
22 | * {@code ImmutableList[]} on server and client side.
23 | *
24 | * @author Hayward Chan
25 | */
26 | public final class ImmutableList_CustomFieldSerializer {}
27 |
--------------------------------------------------------------------------------
/guava/src/com/google/common/collect/ForwardingImmutableList.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect;
18 |
19 | import com.google.common.annotations.GwtCompatible;
20 |
21 | /**
22 | * Unused stub class, unreferenced under Java and manually emulated under GWT.
23 | *
24 | * @author Chris Povirk
25 | */
26 | @GwtCompatible(emulated = true)
27 | abstract class ForwardingImmutableList This package is a part of the open-source Guava
20 | * library.
21 | *
22 | * @author Craig Berry
23 | */
24 | @ParametersAreNonnullByDefault
25 | package com.google.common.net;
26 |
27 | import javax.annotation.ParametersAreNonnullByDefault;
28 |
--------------------------------------------------------------------------------
/guava-testlib/src/com/google/common/collect/testing/TestCollectionGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect.testing;
18 |
19 | import com.google.common.annotations.GwtCompatible;
20 |
21 | import java.util.Collection;
22 |
23 | /**
24 | * Creates collections, containing sample elements, to be tested.
25 | *
26 | * @author Kevin Bourrillion
27 | */
28 | @GwtCompatible
29 | public interface TestCollectionGenerator See the Guava User Guide article on
20 | * hashing.
21 | */
22 | @CheckReturnValue
23 | @ParametersAreNonnullByDefault
24 | package com.google.common.hash;
25 |
26 | import javax.annotation.CheckReturnValue;
27 | import javax.annotation.ParametersAreNonnullByDefault;
28 |
--------------------------------------------------------------------------------
/guava-testlib/src/com/google/common/collect/testing/TestQueueGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect.testing;
18 |
19 | import com.google.common.annotations.GwtCompatible;
20 |
21 | import java.util.Queue;
22 |
23 | /**
24 | * Creates queues, containing sample elements, to be tested.
25 | *
26 | * @author Jared Levy
27 | */
28 | @GwtCompatible
29 | public interface TestQueueGenerator This package is a part of the open-source Guava
22 | * library.
23 | */
24 | @CheckReturnValue
25 | @ParametersAreNonnullByDefault
26 | package com.google.common.graph;
27 |
28 | import javax.annotation.CheckReturnValue;
29 | import javax.annotation.ParametersAreNonnullByDefault;
30 |
31 |
--------------------------------------------------------------------------------
/guava-gwt/test/com/google/common/util/concurrent/RunnablesTest_gwt.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.google.common.util.concurrent;
17 | public class RunnablesTest_gwt extends com.google.gwt.junit.client.GWTTestCase {
18 | @Override public String getModuleName() {
19 | return "com.google.common.util.concurrent.testModule";
20 | }
21 | public void testDoNothingRunnableIsSingleton() throws Exception {
22 | com.google.common.util.concurrent.RunnablesTest testCase = new com.google.common.util.concurrent.RunnablesTest();
23 | testCase.testDoNothingRunnableIsSingleton();
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/guava-testlib/src/com/google/common/collect/testing/TestMapGenerator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 The Guava Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.common.collect.testing;
18 |
19 | import com.google.common.annotations.GwtCompatible;
20 |
21 | import java.util.Map;
22 |
23 | /**
24 | * Creates maps, containing sample elements, to be tested.
25 | *
26 | * @author George van den Driessche
27 | */
28 | @GwtCompatible
29 | public interface TestMapGenerator