├── .gitattributes ├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── COPYING ├── README.md ├── cycle_whitelist.txt ├── dependency-graph.dot ├── guava-gwt ├── pom-template.xml ├── src-super │ ├── com │ │ └── google │ │ │ └── common │ │ │ ├── base │ │ │ └── super │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── common │ │ │ │ └── base │ │ │ │ ├── ExtraObjectsMethodsForWeb.java │ │ │ │ └── Platform.java │ │ │ ├── cache │ │ │ └── super │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── common │ │ │ │ └── cache │ │ │ │ ├── LocalCache.java │ │ │ │ ├── LongAddables.java │ │ │ │ └── LongAdder.java │ │ │ ├── collect │ │ │ └── super │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── common │ │ │ │ └── collect │ │ │ │ ├── AbstractSortedMultiset.java │ │ │ │ ├── DescendingMultiset.java │ │ │ │ ├── ForwardingImmutableCollection.java │ │ │ │ ├── ForwardingImmutableList.java │ │ │ │ ├── ForwardingImmutableMap.java │ │ │ │ ├── ForwardingImmutableSet.java │ │ │ │ ├── ForwardingSortedMultiset.java │ │ │ │ ├── HashBiMap.java │ │ │ │ ├── ImmutableBiMap.java │ │ │ │ ├── ImmutableCollection.java │ │ │ │ ├── ImmutableEnumMap.java │ │ │ │ ├── ImmutableEnumSet.java │ │ │ │ ├── ImmutableList.java │ │ │ │ ├── ImmutableMap.java │ │ │ │ ├── ImmutableSet.java │ │ │ │ ├── ImmutableSortedMap.java │ │ │ │ ├── ImmutableSortedSet.java │ │ │ │ ├── MapMaker.java │ │ │ │ ├── Platform.java │ │ │ │ ├── RangeGwtSerializationDependencies.java │ │ │ │ ├── RegularImmutableBiMap.java │ │ │ │ ├── RegularImmutableList.java │ │ │ │ ├── RegularImmutableMap.java │ │ │ │ ├── RegularImmutableSet.java │ │ │ │ ├── RegularImmutableSortedSet.java │ │ │ │ ├── SingletonImmutableBiMap.java │ │ │ │ ├── SingletonImmutableList.java │ │ │ │ ├── SingletonImmutableSet.java │ │ │ │ ├── SortedMultiset.java │ │ │ │ └── UnmodifiableSortedMultiset.java │ │ │ ├── escape │ │ │ └── super │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── common │ │ │ │ └── escape │ │ │ │ └── Platform.java │ │ │ └── util │ │ │ └── concurrent │ │ │ └── super │ │ │ └── com │ │ │ └── google │ │ │ └── common │ │ │ └── util │ │ │ └── concurrent │ │ │ ├── AbstractFuture.java │ │ │ ├── AggregateFutureState.java │ │ │ ├── GwtFuturesCatchingSpecialization.java │ │ │ ├── InterruptibleTask.java │ │ │ ├── Platform.java │ │ │ └── Uninterruptibles.java │ └── java │ │ ├── lang │ │ ├── Lang.gwt.xml │ │ └── super │ │ │ └── java │ │ │ └── lang │ │ │ ├── InterruptedException.java │ │ │ └── reflect │ │ │ └── UndeclaredThrowableException.java │ │ └── util │ │ ├── Util.gwt.xml │ │ └── super │ │ └── java │ │ └── util │ │ └── concurrent │ │ ├── Callable.java │ │ ├── CancellationException.java │ │ ├── ConcurrentHashMap.java │ │ ├── ConcurrentMap.java │ │ ├── CountDownLatch.java │ │ ├── Delayed.java │ │ ├── ExecutionException.java │ │ ├── Executor.java │ │ ├── Executors.java │ │ ├── Future.java │ │ ├── RejectedExecutionException.java │ │ ├── RunnableFuture.java │ │ ├── ScheduledFuture.java │ │ ├── TimeUnit.java │ │ ├── TimeoutException.java │ │ └── atomic │ │ ├── AtomicBoolean.java │ │ ├── AtomicInteger.java │ │ └── AtomicLong.java ├── src │ └── com │ │ └── google │ │ ├── common │ │ ├── ForceGuavaCompilation.gwt.xml │ │ ├── ForceGuavaCompilationEntryPoint.java │ │ ├── annotations │ │ │ └── Annotations.gwt.xml │ │ ├── base │ │ │ ├── Absent_CustomFieldSerializer.java │ │ │ ├── Base.gwt.xml │ │ │ ├── GwtSerializationDependencies.java │ │ │ ├── PairwiseEquivalence_CustomFieldSerializer.java │ │ │ └── Present_CustomFieldSerializer.java │ │ ├── cache │ │ │ └── Cache.gwt.xml │ │ ├── collect │ │ │ ├── AllEqualOrdering_CustomFieldSerializer.java │ │ │ ├── ArrayListMultimap_CustomFieldSerializer.java │ │ │ ├── ByFunctionOrdering_CustomFieldSerializer.java │ │ │ ├── Collect.gwt.xml │ │ │ ├── ComparatorOrdering_CustomFieldSerializer.java │ │ │ ├── CompoundOrdering_CustomFieldSerializer.java │ │ │ ├── DenseImmutableTable_CustomFieldSerializer.java │ │ │ ├── EmptyImmutableListMultimap_CustomFieldSerializer.java │ │ │ ├── EmptyImmutableSetMultimap_CustomFieldSerializer.java │ │ │ ├── ExplicitOrdering_CustomFieldSerializer.java │ │ │ ├── ForwardingImmutableList_CustomFieldSerializer.java │ │ │ ├── ForwardingImmutableSet_CustomFieldSerializer.java │ │ │ ├── GwtSerializationDependencies.java │ │ │ ├── HashBasedTable_CustomFieldSerializer.java │ │ │ ├── HashMultimap_CustomFieldSerializer.java │ │ │ ├── HashMultiset_CustomFieldSerializer.java │ │ │ ├── ImmutableAsList_CustomFieldSerializer.java │ │ │ ├── ImmutableBiMap_CustomFieldSerializer.java │ │ │ ├── ImmutableEntry_CustomFieldSerializer.java │ │ │ ├── ImmutableEnumMap_CustomFieldSerializer.java │ │ │ ├── ImmutableEnumSet_CustomFieldSerializer.java │ │ │ ├── ImmutableListMultimap_CustomFieldSerializer.java │ │ │ ├── ImmutableList_CustomFieldSerializer.java │ │ │ ├── ImmutableMultiset_CustomFieldSerializer.java │ │ │ ├── ImmutableSetMultimap_CustomFieldSerializer.java │ │ │ ├── ImmutableSet_CustomFieldSerializer.java │ │ │ ├── ImmutableSortedMap_CustomFieldSerializer.java │ │ │ ├── ImmutableSortedMap_CustomFieldSerializerBase.java │ │ │ ├── ImmutableSortedSet_CustomFieldSerializer.java │ │ │ ├── ImmutableTable_CustomFieldSerializerBase.java │ │ │ ├── LexicographicalOrdering_CustomFieldSerializer.java │ │ │ ├── LinkedHashMultimap_CustomFieldSerializer.java │ │ │ ├── LinkedHashMultiset_CustomFieldSerializer.java │ │ │ ├── LinkedListMultimap_CustomFieldSerializer.java │ │ │ ├── Multimap_CustomFieldSerializerBase.java │ │ │ ├── Multiset_CustomFieldSerializerBase.java │ │ │ ├── NaturalOrdering_CustomFieldSerializer.java │ │ │ ├── NullsFirstOrdering_CustomFieldSerializer.java │ │ │ ├── NullsLastOrdering_CustomFieldSerializer.java │ │ │ ├── Range_CustomFieldSerializer.java │ │ │ ├── RegularImmutableAsList_CustomFieldSerializer.java │ │ │ ├── RegularImmutableBiMap_CustomFieldSerializer.java │ │ │ ├── RegularImmutableList_CustomFieldSerializer.java │ │ │ ├── RegularImmutableMap_CustomFieldSerializer.java │ │ │ ├── RegularImmutableMultiset_CustomFieldSerializer.java │ │ │ ├── RegularImmutableSet_CustomFieldSerializer.java │ │ │ ├── RegularImmutableSortedSet_CustomFieldSerializer.java │ │ │ ├── ReverseNaturalOrdering_CustomFieldSerializer.java │ │ │ ├── ReverseOrdering_CustomFieldSerializer.java │ │ │ ├── SingletonImmutableBiMap_CustomFieldSerializer.java │ │ │ ├── SingletonImmutableList_CustomFieldSerializer.java │ │ │ ├── SingletonImmutableSet_CustomFieldSerializer.java │ │ │ ├── SingletonImmutableTable_CustomFieldSerializer.java │ │ │ ├── SparseImmutableTable_CustomFieldSerializer.java │ │ │ ├── Table_CustomFieldSerializerBase.java │ │ │ ├── TreeBasedTable_CustomFieldSerializer.java │ │ │ ├── TreeMultimap_CustomFieldSerializer.java │ │ │ └── UsingToStringOrdering_CustomFieldSerializer.java │ │ ├── escape │ │ │ └── Escape.gwt.xml │ │ ├── html │ │ │ └── Html.gwt.xml │ │ ├── io │ │ │ └── Io.gwt.xml │ │ ├── math │ │ │ └── Math.gwt.xml │ │ ├── net │ │ │ └── Net.gwt.xml │ │ ├── primitives │ │ │ ├── Primitives.gwt.xml │ │ │ └── UnsignedLong_CustomFieldSerializer.java │ │ ├── util │ │ │ └── concurrent │ │ │ │ └── Concurrent.gwt.xml │ │ └── xml │ │ │ └── Xml.gwt.xml │ │ └── thirdparty │ │ └── publicsuffix │ │ ├── PublicSuffixPatterns.gwt.xml │ │ └── PublicSuffixType.gwt.xml ├── test-super │ └── com │ │ └── google │ │ └── common │ │ ├── collect │ │ └── testing │ │ │ └── super │ │ │ └── com │ │ │ └── google │ │ │ └── common │ │ │ └── collect │ │ │ └── testing │ │ │ ├── Platform.java │ │ │ └── testers │ │ │ └── Platform.java │ │ ├── math │ │ └── super │ │ │ └── com │ │ │ └── google │ │ │ └── common │ │ │ └── math │ │ │ └── TestPlatform.java │ │ ├── testing │ │ └── super │ │ │ └── com │ │ │ └── google │ │ │ └── common │ │ │ └── testing │ │ │ └── Platform.java │ │ └── util │ │ └── concurrent │ │ └── super │ │ └── com │ │ └── google │ │ └── common │ │ └── util │ │ └── concurrent │ │ └── TestPlatform.java └── test │ └── com │ └── google │ └── common │ ├── GuavaTests.gwt.xml │ ├── GuavaTestsEntryPoint.java │ ├── GwtTestSuite.java │ ├── base │ ├── AbstractIteratorTest_gwt.java │ ├── AsciiTest_gwt.java │ ├── CaseFormatTest_gwt.java │ ├── CharMatcherTest_gwt.java │ ├── CharsetsTest_gwt.java │ ├── ConverterTest_gwt.java │ ├── EnumsTest_gwt.java │ ├── EquivalenceTest_gwt.java │ ├── FunctionsTest_gwt.java │ ├── JoinerTest_gwt.java │ ├── ObjectsTest_gwt.java │ ├── OptionalTest_gwt.java │ ├── PreconditionsTest_gwt.java │ ├── PredicatesTest_gwt.java │ ├── SplitterTest_gwt.java │ ├── StopwatchTest_gwt.java │ ├── StringsTest_gwt.java │ ├── SuppliersTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── ThrowablesTest_gwt.java │ ├── ToStringHelperTest_gwt.java │ ├── Utf8Test_gwt.java │ ├── VerifyTest_gwt.java │ └── testModule.gwt.xml │ ├── cache │ ├── CacheBuilderGwtTest_gwt.java │ ├── CacheBuilderTest_gwt.java │ ├── TestModuleEntryPoint.java │ └── testModule.gwt.xml │ ├── collect │ ├── AbstractIteratorTest_gwt.java │ ├── AbstractMapEntryTest_gwt.java │ ├── AbstractSequentialIteratorTest_gwt.java │ ├── ArrayListMultimapTest_gwt.java │ ├── ArrayTableTest_gwt.java │ ├── CollectSpliteratorsTest_gwt.java │ ├── Collections2Test_gwt.java │ ├── ComparisonChainTest_gwt.java │ ├── ContiguousSetTest_gwt.java │ ├── CountTest_gwt.java │ ├── EmptyImmutableTableTest_gwt.java │ ├── EnumBiMapTest_gwt.java │ ├── EnumHashBiMapTest_gwt.java │ ├── EnumMultisetTest_gwt.java │ ├── EvictingQueueTest_gwt.java │ ├── ForMapMultimapAsMapImplementsMapTest_gwt.java │ ├── ForwardingSortedMapImplementsMapTest_gwt.java │ ├── GeneralRangeTest_gwt.java │ ├── HashBasedTableTest_gwt.java │ ├── HashBiMapTest_gwt.java │ ├── HashMultimapTest_gwt.java │ ├── HashMultisetTest_gwt.java │ ├── ImmutableBiMapTest_gwt.java │ ├── ImmutableEnumMapTest_gwt.java │ ├── ImmutableListMultimapTest_gwt.java │ ├── ImmutableListTest_gwt.java │ ├── ImmutableMapTest_gwt.java │ ├── ImmutableMultimapAsMapImplementsMapTest_gwt.java │ ├── ImmutableMultimapTest_gwt.java │ ├── ImmutableMultisetTest_gwt.java │ ├── ImmutableSetMultimapAsMapImplementsMapTest_gwt.java │ ├── ImmutableSetMultimapTest_gwt.java │ ├── ImmutableSetTest_gwt.java │ ├── ImmutableSortedMapTest_gwt.java │ ├── ImmutableSortedSetTest_gwt.java │ ├── ImmutableTableTest_gwt.java │ ├── IterablesTest_gwt.java │ ├── IteratorsTest_gwt.java │ ├── LinkedHashMultimapTest_gwt.java │ ├── LinkedHashMultisetTest_gwt.java │ ├── LinkedListMultimapTest_gwt.java │ ├── ListsTest_gwt.java │ ├── MapMakerTest_gwt.java │ ├── MapsSortedTransformValuesTest_gwt.java │ ├── MapsTest_gwt.java │ ├── MapsTransformValuesTest_gwt.java │ ├── MapsTransformValuesUnmodifiableIteratorTest_gwt.java │ ├── MinMaxPriorityQueueTest_gwt.java │ ├── MoreCollectorsTest_gwt.java │ ├── MultimapBuilderTest_gwt.java │ ├── MultimapsTest_gwt.java │ ├── MultimapsTransformValuesAsMapTest_gwt.java │ ├── MultisetsImmutableEntryTest_gwt.java │ ├── MultisetsTest_gwt.java │ ├── NewCustomTableTest_gwt.java │ ├── ObjectArraysTest_gwt.java │ ├── OrderingTest_gwt.java │ ├── PeekingIteratorTest_gwt.java │ ├── RangeTest_gwt.java │ ├── RegularImmutableAsListTest_gwt.java │ ├── RegularImmutableTableTest_gwt.java │ ├── SetOperationsTest_gwt.java │ ├── SetsTest_gwt.java │ ├── SimpleAbstractMultisetTest_gwt.java │ ├── SingletonImmutableTableTest_gwt.java │ ├── SortedIterablesTest_gwt.java │ ├── SortedListsTest_gwt.java │ ├── SubMapMultimapAsMapImplementsMapTest_gwt.java │ ├── TableCollectionTest_gwt.java │ ├── TablesTest_gwt.java │ ├── TablesTransformValuesTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── TransposedTableTest_gwt.java │ ├── TreeBasedTableTest_gwt.java │ ├── TreeMultimapExplicitTest_gwt.java │ ├── TreeMultimapNaturalTest_gwt.java │ ├── TreeMultisetTest_gwt.java │ ├── TreeTraverserTest_gwt.java │ ├── UnmodifiableIteratorTest_gwt.java │ ├── UnmodifiableListIteratorTest_gwt.java │ ├── UnmodifiableMultimapAsMapImplementsMapTest_gwt.java │ ├── WellBehavedMapTest_gwt.java │ ├── testModule.gwt.xml │ └── testing │ │ ├── HelpersTest_gwt.java │ │ ├── IteratorTesterTest_gwt.java │ │ ├── MinimalIterableTest_gwt.java │ │ ├── TestModuleEntryPoint.java │ │ ├── Testing.gwt.xml │ │ ├── google │ │ └── Google.gwt.xml │ │ └── testModule.gwt.xml │ ├── escape │ ├── ArrayBasedCharEscaperTest_gwt.java │ ├── ArrayBasedEscaperMapTest_gwt.java │ ├── ArrayBasedUnicodeEscaperTest_gwt.java │ ├── EscapersTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── UnicodeEscaperTest_gwt.java │ ├── testModule.gwt.xml │ └── testing │ │ └── Testing.gwt.xml │ ├── html │ ├── HtmlEscapersTest_gwt.java │ ├── TestModuleEntryPoint.java │ └── testModule.gwt.xml │ ├── io │ ├── BaseEncodingTest_gwt.java │ ├── TestModuleEntryPoint.java │ └── testModule.gwt.xml │ ├── math │ ├── BigIntegerMathTest_gwt.java │ ├── IntMathTest_gwt.java │ ├── LongMathTest_gwt.java │ ├── TestModuleEntryPoint.java │ └── testModule.gwt.xml │ ├── net │ ├── HostAndPortTest_gwt.java │ ├── InternetDomainNameTest_gwt.java │ ├── MediaTypeTest_gwt.java │ ├── PercentEscaperTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── UrlEscapersTest_gwt.java │ └── testModule.gwt.xml │ ├── primitives │ ├── BooleansTest_gwt.java │ ├── BytesTest_gwt.java │ ├── CharsTest_gwt.java │ ├── DoublesTest_gwt.java │ ├── FloatsTest_gwt.java │ ├── IntsTest_gwt.java │ ├── LongsTest_gwt.java │ ├── ShortsTest_gwt.java │ ├── SignedBytesTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── UnsignedIntsTest_gwt.java │ ├── UnsignedLongTest_gwt.java │ ├── UnsignedLongsTest_gwt.java │ └── testModule.gwt.xml │ ├── testing │ ├── EqualsTesterTest_gwt.java │ ├── EquivalenceTesterTest_gwt.java │ ├── FakeTickerTest_gwt.java │ ├── TearDownStackTest_gwt.java │ ├── TestModuleEntryPoint.java │ ├── Testing.gwt.xml │ └── testModule.gwt.xml │ ├── util │ └── concurrent │ │ ├── AtomicLongMapTest_gwt.java │ │ ├── CallablesTest_gwt.java │ │ ├── FutureCallbackTest_gwt.java │ │ ├── FuturesGetDoneTest_gwt.java │ │ ├── FuturesTest_gwt.java │ │ ├── RunnablesTest_gwt.java │ │ ├── TestModuleEntryPoint.java │ │ ├── TrustedInputFutureTest_gwt.java │ │ ├── TrustedListenableFutureTaskTest_gwt.java │ │ ├── UntrustedInputFutureTest_gwt.java │ │ └── testModule.gwt.xml │ └── xml │ ├── TestModuleEntryPoint.java │ ├── XmlEscapersTest_gwt.java │ └── testModule.gwt.xml ├── guava-testlib ├── pom-template.xml ├── src │ └── com │ │ └── google │ │ └── common │ │ ├── collect │ │ └── testing │ │ │ ├── AbstractCollectionTestSuiteBuilder.java │ │ │ ├── AbstractCollectionTester.java │ │ │ ├── AbstractContainerTester.java │ │ │ ├── AbstractIteratorTester.java │ │ │ ├── AbstractMapTester.java │ │ │ ├── AbstractTester.java │ │ │ ├── AnEnum.java │ │ │ ├── BaseComparable.java │ │ │ ├── CollectionTestSuiteBuilder.java │ │ │ ├── ConcurrentMapTestSuiteBuilder.java │ │ │ ├── ConcurrentNavigableMapTestSuiteBuilder.java │ │ │ ├── DerivedCollectionGenerators.java │ │ │ ├── DerivedComparable.java │ │ │ ├── DerivedGenerator.java │ │ │ ├── DerivedTestIteratorGenerator.java │ │ │ ├── FeatureSpecificTestSuiteBuilder.java │ │ │ ├── Helpers.java │ │ │ ├── IteratorFeature.java │ │ │ ├── IteratorTester.java │ │ │ ├── ListIteratorTester.java │ │ │ ├── ListTestSuiteBuilder.java │ │ │ ├── MapInterfaceTest.java │ │ │ ├── MapTestSuiteBuilder.java │ │ │ ├── MinimalCollection.java │ │ │ ├── MinimalIterable.java │ │ │ ├── MinimalSet.java │ │ │ ├── NavigableMapTestSuiteBuilder.java │ │ │ ├── NavigableSetTestSuiteBuilder.java │ │ │ ├── OneSizeGenerator.java │ │ │ ├── OneSizeTestContainerGenerator.java │ │ │ ├── PerCollectionSizeTestSuiteBuilder.java │ │ │ ├── Platform.java │ │ │ ├── QueueTestSuiteBuilder.java │ │ │ ├── ReserializingTestCollectionGenerator.java │ │ │ ├── ReserializingTestSetGenerator.java │ │ │ ├── SafeTreeMap.java │ │ │ ├── SafeTreeSet.java │ │ │ ├── SampleElements.java │ │ │ ├── SetTestSuiteBuilder.java │ │ │ ├── SortedMapInterfaceTest.java │ │ │ ├── SortedMapTestSuiteBuilder.java │ │ │ ├── SortedSetTestSuiteBuilder.java │ │ │ ├── SpliteratorTester.java │ │ │ ├── TestCharacterListGenerator.java │ │ │ ├── TestCollectionGenerator.java │ │ │ ├── TestCollidingSetGenerator.java │ │ │ ├── TestContainerGenerator.java │ │ │ ├── TestEnumMapGenerator.java │ │ │ ├── TestEnumSetGenerator.java │ │ │ ├── TestIntegerSetGenerator.java │ │ │ ├── TestIntegerSortedSetGenerator.java │ │ │ ├── TestIteratorGenerator.java │ │ │ ├── TestListGenerator.java │ │ │ ├── TestMapEntrySetGenerator.java │ │ │ ├── TestMapGenerator.java │ │ │ ├── TestQueueGenerator.java │ │ │ ├── TestSetGenerator.java │ │ │ ├── TestSortedMapGenerator.java │ │ │ ├── TestSortedSetGenerator.java │ │ │ ├── TestStringCollectionGenerator.java │ │ │ ├── TestStringListGenerator.java │ │ │ ├── TestStringMapGenerator.java │ │ │ ├── TestStringQueueGenerator.java │ │ │ ├── TestStringSetGenerator.java │ │ │ ├── TestStringSortedMapGenerator.java │ │ │ ├── TestStringSortedSetGenerator.java │ │ │ ├── TestSubjectGenerator.java │ │ │ ├── TestUnhashableCollectionGenerator.java │ │ │ ├── TestsForListsInJavaUtil.java │ │ │ ├── TestsForMapsInJavaUtil.java │ │ │ ├── TestsForQueuesInJavaUtil.java │ │ │ ├── TestsForSetsInJavaUtil.java │ │ │ ├── UnhashableObject.java │ │ │ ├── WrongType.java │ │ │ ├── features │ │ │ ├── CollectionFeature.java │ │ │ ├── CollectionSize.java │ │ │ ├── ConflictingRequirementsException.java │ │ │ ├── Feature.java │ │ │ ├── FeatureUtil.java │ │ │ ├── ListFeature.java │ │ │ ├── MapFeature.java │ │ │ ├── SetFeature.java │ │ │ ├── TesterAnnotation.java │ │ │ └── TesterRequirements.java │ │ │ ├── google │ │ │ ├── AbstractBiMapTester.java │ │ │ ├── AbstractListMultimapTester.java │ │ │ ├── AbstractMultimapTester.java │ │ │ ├── AbstractMultisetSetCountTester.java │ │ │ ├── AbstractMultisetTester.java │ │ │ ├── BiMapClearTester.java │ │ │ ├── BiMapGenerators.java │ │ │ ├── BiMapInverseTester.java │ │ │ ├── BiMapPutTester.java │ │ │ ├── BiMapRemoveTester.java │ │ │ ├── BiMapTestSuiteBuilder.java │ │ │ ├── DerivedGoogleCollectionGenerators.java │ │ │ ├── GoogleHelpers.java │ │ │ ├── ListGenerators.java │ │ │ ├── ListMultimapAsMapTester.java │ │ │ ├── ListMultimapEqualsTester.java │ │ │ ├── ListMultimapPutAllTester.java │ │ │ ├── ListMultimapPutTester.java │ │ │ ├── ListMultimapRemoveTester.java │ │ │ ├── ListMultimapReplaceValuesTester.java │ │ │ ├── ListMultimapTestSuiteBuilder.java │ │ │ ├── MapGenerators.java │ │ │ ├── MultimapAsMapGetTester.java │ │ │ ├── MultimapAsMapTester.java │ │ │ ├── MultimapClearTester.java │ │ │ ├── MultimapContainsEntryTester.java │ │ │ ├── MultimapContainsKeyTester.java │ │ │ ├── MultimapContainsValueTester.java │ │ │ ├── MultimapEntriesTester.java │ │ │ ├── MultimapEqualsTester.java │ │ │ ├── MultimapFeature.java │ │ │ ├── MultimapForEachTester.java │ │ │ ├── MultimapGetTester.java │ │ │ ├── MultimapKeySetTester.java │ │ │ ├── MultimapKeysTester.java │ │ │ ├── MultimapPutAllMultimapTester.java │ │ │ ├── MultimapPutIterableTester.java │ │ │ ├── MultimapPutTester.java │ │ │ ├── MultimapRemoveAllTester.java │ │ │ ├── MultimapRemoveEntryTester.java │ │ │ ├── MultimapReplaceValuesTester.java │ │ │ ├── MultimapSizeTester.java │ │ │ ├── MultimapTestSuiteBuilder.java │ │ │ ├── MultimapToStringTester.java │ │ │ ├── MultimapValuesTester.java │ │ │ ├── MultisetAddTester.java │ │ │ ├── MultisetContainsTester.java │ │ │ ├── MultisetCountTester.java │ │ │ ├── MultisetElementSetTester.java │ │ │ ├── MultisetEntrySetTester.java │ │ │ ├── MultisetEqualsTester.java │ │ │ ├── MultisetFeature.java │ │ │ ├── MultisetForEachEntryTester.java │ │ │ ├── MultisetIteratorTester.java │ │ │ ├── MultisetNavigationTester.java │ │ │ ├── MultisetReadsTester.java │ │ │ ├── MultisetRemoveTester.java │ │ │ ├── MultisetSerializationTester.java │ │ │ ├── MultisetSetCountConditionallyTester.java │ │ │ ├── MultisetSetCountUnconditionallyTester.java │ │ │ ├── MultisetTestSuiteBuilder.java │ │ │ ├── SetGenerators.java │ │ │ ├── SetMultimapAsMapTester.java │ │ │ ├── SetMultimapEqualsTester.java │ │ │ ├── SetMultimapPutAllTester.java │ │ │ ├── SetMultimapPutTester.java │ │ │ ├── SetMultimapReplaceValuesTester.java │ │ │ ├── SetMultimapTestSuiteBuilder.java │ │ │ ├── SortedMapGenerators.java │ │ │ ├── SortedMultisetTestSuiteBuilder.java │ │ │ ├── SortedSetMultimapAsMapTester.java │ │ │ ├── SortedSetMultimapGetTester.java │ │ │ ├── SortedSetMultimapTestSuiteBuilder.java │ │ │ ├── TestBiMapGenerator.java │ │ │ ├── TestEnumMultisetGenerator.java │ │ │ ├── TestListMultimapGenerator.java │ │ │ ├── TestMultimapGenerator.java │ │ │ ├── TestMultisetGenerator.java │ │ │ ├── TestSetMultimapGenerator.java │ │ │ ├── TestStringBiMapGenerator.java │ │ │ ├── TestStringListMultimapGenerator.java │ │ │ ├── TestStringMultisetGenerator.java │ │ │ ├── TestStringSetMultimapGenerator.java │ │ │ └── UnmodifiableCollectionTests.java │ │ │ └── testers │ │ │ ├── AbstractListIndexOfTester.java │ │ │ ├── AbstractListTester.java │ │ │ ├── AbstractQueueTester.java │ │ │ ├── AbstractSetTester.java │ │ │ ├── CollectionAddAllTester.java │ │ │ ├── CollectionAddTester.java │ │ │ ├── CollectionClearTester.java │ │ │ ├── CollectionContainsAllTester.java │ │ │ ├── CollectionContainsTester.java │ │ │ ├── CollectionCreationTester.java │ │ │ ├── CollectionEqualsTester.java │ │ │ ├── CollectionForEachTester.java │ │ │ ├── CollectionIsEmptyTester.java │ │ │ ├── CollectionIteratorTester.java │ │ │ ├── CollectionRemoveAllTester.java │ │ │ ├── CollectionRemoveIfTester.java │ │ │ ├── CollectionRemoveTester.java │ │ │ ├── CollectionRetainAllTester.java │ │ │ ├── CollectionSerializationEqualTester.java │ │ │ ├── CollectionSerializationTester.java │ │ │ ├── CollectionSizeTester.java │ │ │ ├── CollectionSpliteratorTester.java │ │ │ ├── CollectionStreamTester.java │ │ │ ├── CollectionToArrayTester.java │ │ │ ├── CollectionToStringTester.java │ │ │ ├── ConcurrentMapPutIfAbsentTester.java │ │ │ ├── ConcurrentMapRemoveTester.java │ │ │ ├── ConcurrentMapReplaceEntryTester.java │ │ │ ├── ConcurrentMapReplaceTester.java │ │ │ ├── ListAddAllAtIndexTester.java │ │ │ ├── ListAddAllTester.java │ │ │ ├── ListAddAtIndexTester.java │ │ │ ├── ListAddTester.java │ │ │ ├── ListCreationTester.java │ │ │ ├── ListEqualsTester.java │ │ │ ├── ListGetTester.java │ │ │ ├── ListHashCodeTester.java │ │ │ ├── ListIndexOfTester.java │ │ │ ├── ListLastIndexOfTester.java │ │ │ ├── ListListIteratorTester.java │ │ │ ├── ListRemoveAllTester.java │ │ │ ├── ListRemoveAtIndexTester.java │ │ │ ├── ListRemoveTester.java │ │ │ ├── ListReplaceAllTester.java │ │ │ ├── ListRetainAllTester.java │ │ │ ├── ListSetTester.java │ │ │ ├── ListSubListTester.java │ │ │ ├── ListToArrayTester.java │ │ │ ├── MapClearTester.java │ │ │ ├── MapComputeIfAbsentTester.java │ │ │ ├── MapComputeIfPresentTester.java │ │ │ ├── MapComputeTester.java │ │ │ ├── MapContainsKeyTester.java │ │ │ ├── MapContainsValueTester.java │ │ │ ├── MapCreationTester.java │ │ │ ├── MapEntrySetTester.java │ │ │ ├── MapEqualsTester.java │ │ │ ├── MapForEachTester.java │ │ │ ├── MapGetOrDefaultTester.java │ │ │ ├── MapGetTester.java │ │ │ ├── MapHashCodeTester.java │ │ │ ├── MapIsEmptyTester.java │ │ │ ├── MapMergeTester.java │ │ │ ├── MapPutAllTester.java │ │ │ ├── MapPutIfAbsentTester.java │ │ │ ├── MapPutTester.java │ │ │ ├── MapRemoveEntryTester.java │ │ │ ├── MapRemoveTester.java │ │ │ ├── MapReplaceAllTester.java │ │ │ ├── MapReplaceEntryTester.java │ │ │ ├── MapReplaceTester.java │ │ │ ├── MapSerializationTester.java │ │ │ ├── MapSizeTester.java │ │ │ ├── MapToStringTester.java │ │ │ ├── NavigableMapNavigationTester.java │ │ │ ├── NavigableSetNavigationTester.java │ │ │ ├── Platform.java │ │ │ ├── QueueElementTester.java │ │ │ ├── QueueOfferTester.java │ │ │ ├── QueuePeekTester.java │ │ │ ├── QueuePollTester.java │ │ │ ├── QueueRemoveTester.java │ │ │ ├── SetAddAllTester.java │ │ │ ├── SetAddTester.java │ │ │ ├── SetCreationTester.java │ │ │ ├── SetEqualsTester.java │ │ │ ├── SetHashCodeTester.java │ │ │ ├── SetRemoveTester.java │ │ │ ├── SortedMapNavigationTester.java │ │ │ └── SortedSetNavigationTester.java │ │ ├── escape │ │ └── testing │ │ │ ├── EscaperAsserts.java │ │ │ └── package-info.java │ │ ├── testing │ │ ├── AbstractPackageSanityTests.java │ │ ├── ArbitraryInstances.java │ │ ├── ClassSanityTester.java │ │ ├── ClusterException.java │ │ ├── CollectorTester.java │ │ ├── DummyProxy.java │ │ ├── EqualsTester.java │ │ ├── EquivalenceTester.java │ │ ├── FakeTicker.java │ │ ├── ForwardingWrapperTester.java │ │ ├── FreshValueGenerator.java │ │ ├── GcFinalization.java │ │ ├── NullPointerTester.java │ │ ├── Platform.java │ │ ├── RelationshipTester.java │ │ ├── SerializableTester.java │ │ ├── SloppyTearDown.java │ │ ├── TearDown.java │ │ ├── TearDownAccepter.java │ │ ├── TearDownStack.java │ │ ├── TestLogHandler.java │ │ └── package-info.java │ │ └── util │ │ └── concurrent │ │ └── testing │ │ ├── AbstractCheckedFutureTest.java │ │ ├── AbstractListenableFutureTest.java │ │ ├── MockFutureListener.java │ │ ├── SameThreadScheduledExecutorService.java │ │ └── TestingExecutors.java └── test │ └── com │ └── google │ └── common │ ├── collect │ └── testing │ │ ├── FeatureSpecificTestSuiteBuilderTest.java │ │ ├── HelpersTest.java │ │ ├── IteratorTesterTest.java │ │ ├── MapTestSuiteBuilderTests.java │ │ ├── MinimalCollectionTest.java │ │ ├── MinimalIterableTest.java │ │ ├── MinimalSetTest.java │ │ ├── OpenJdk6ListTests.java │ │ ├── OpenJdk6MapTests.java │ │ ├── OpenJdk6QueueTests.java │ │ ├── OpenJdk6SetTests.java │ │ ├── OpenJdk6Tests.java │ │ ├── SafeTreeMapTest.java │ │ ├── SafeTreeSetTest.java │ │ └── features │ │ ├── AndroidIncompatible.java │ │ ├── FeatureEnumTest.java │ │ └── FeatureUtilTest.java │ ├── testing │ ├── AbstractPackageSanityTestsTest.java │ ├── AndroidIncompatible.java │ ├── ArbitraryInstancesTest.java │ ├── ClassSanityTesterTest.java │ ├── EqualsTesterTest.java │ ├── EquivalenceTesterTest.java │ ├── FakeTickerTest.java │ ├── FreshValueGeneratorTest.java │ ├── GcFinalizationTest.java │ ├── NullPointerTesterTest.java │ ├── PackageSanityTests.java │ ├── RelationshipTesterTest.java │ ├── SerializableTesterTest.java │ ├── TearDownStackTest.java │ ├── TestLogHandlerTest.java │ └── anotherpackage │ │ ├── ForwardingWrapperTesterTest.java │ │ └── SomeClassThatDoesNotUseNullable.java │ └── util │ └── concurrent │ └── testing │ └── TestingExecutorsTest.java ├── guava-tests ├── benchmark │ └── com │ │ └── google │ │ └── common │ │ ├── base │ │ ├── AsciiBenchmark.java │ │ ├── CharMatcherBenchmark.java │ │ ├── EnumsBenchmark.java │ │ ├── JoinerBenchmark.java │ │ ├── LazyStackTraceBenchmark.java │ │ ├── ObjectsBenchmark.java │ │ ├── SplitterBenchmark.java │ │ ├── StopwatchBenchmark.java │ │ ├── StringsRepeatBenchmark.java │ │ ├── ToStringHelperBenchmark.java │ │ └── WhitespaceMatcherBenchmark.java │ │ ├── cache │ │ ├── ChainBenchmark.java │ │ ├── LoadingCacheSingleThreadBenchmark.java │ │ ├── MapMakerComparisonBenchmark.java │ │ └── SegmentBenchmark.java │ │ ├── collect │ │ ├── BinaryTreeTraverserBenchmark.java │ │ ├── ComparatorDelegationOverheadBenchmark.java │ │ ├── ConcurrentHashMultisetBenchmark.java │ │ ├── HashMultisetAddPresentBenchmark.java │ │ ├── ImmutableListCreationBenchmark.java │ │ ├── InternersBenchmark.java │ │ ├── IteratorBenchmark.java │ │ ├── MapBenchmark.java │ │ ├── MinMaxPriorityQueueBenchmark.java │ │ ├── MultipleSetContainsBenchmark.java │ │ ├── MultisetIteratorBenchmark.java │ │ ├── PowerSetBenchmark.java │ │ ├── SetContainsBenchmark.java │ │ ├── SetCreationBenchmark.java │ │ ├── SetIterationBenchmark.java │ │ ├── SortedCopyBenchmark.java │ │ └── StreamsBenchmark.java │ │ ├── eventbus │ │ └── EventBusBenchmark.java │ │ ├── hash │ │ ├── ChecksumBenchmark.java │ │ ├── HashCodeBenchmark.java │ │ ├── HashFunctionBenchmark.java │ │ ├── MessageDigestAlgorithmBenchmark.java │ │ └── MessageDigestCreationBenchmark.java │ │ ├── io │ │ └── BaseEncodingBenchmark.java │ │ ├── math │ │ ├── ApacheBenchmark.java │ │ ├── BigIntegerMathBenchmark.java │ │ ├── BigIntegerMathRoundingBenchmark.java │ │ ├── DoubleMathBenchmark.java │ │ ├── DoubleMathRoundingBenchmark.java │ │ ├── IntMathBenchmark.java │ │ ├── IntMathRoundingBenchmark.java │ │ ├── LessThanBenchmark.java │ │ ├── LongMathBenchmark.java │ │ ├── LongMathRoundingBenchmark.java │ │ ├── QuantilesBenchmark.java │ │ └── StatsBenchmark.java │ │ ├── primitives │ │ ├── UnsignedBytesBenchmark.java │ │ └── UnsignedLongsBenchmark.java │ │ └── util │ │ └── concurrent │ │ ├── AbstractFutureFootprintBenchmark.java │ │ ├── CycleDetectingLockFactoryBenchmark.java │ │ ├── ExecutionListBenchmark.java │ │ ├── FuturesGetCheckedBenchmark.java │ │ ├── MonitorBasedArrayBlockingQueue.java │ │ ├── MonitorBasedPriorityBlockingQueue.java │ │ ├── MonitorBenchmark.java │ │ ├── MoreExecutorsDirectExecutorBenchmark.java │ │ ├── SingleThreadAbstractFutureBenchmark.java │ │ └── StripedBenchmark.java ├── pom-template.xml └── test │ └── com │ └── google │ └── common │ ├── base │ ├── AbstractIteratorTest.java │ ├── AndroidIncompatible.java │ ├── AsciiTest.java │ ├── BenchmarkHelpers.java │ ├── CaseFormatTest.java │ ├── CharMatcherTest.java │ ├── CharsetsTest.java │ ├── ConverterTest.java │ ├── DefaultsTest.java │ ├── EnumsTest.java │ ├── EquivalenceTest.java │ ├── FinalizableReferenceQueueClassLoaderUnloadingTest.java │ ├── FinalizableReferenceQueueTest.java │ ├── FunctionsTest.java │ ├── JoinerTest.java │ ├── ObjectsTest.java │ ├── OptionalTest.java │ ├── PackageSanityTests.java │ ├── PreconditionsTest.java │ ├── PredicatesTest.java │ ├── SplitterTest.java │ ├── StandardSystemPropertyTest.java │ ├── StopwatchTest.java │ ├── StringsTest.java │ ├── SuppliersTest.java │ ├── ThrowablesTest.java │ ├── ToStringHelperTest.java │ ├── Utf8Test.java │ └── VerifyTest.java │ ├── cache │ ├── AbstractCacheTest.java │ ├── AbstractLoadingCacheTest.java │ ├── AndroidIncompatible.java │ ├── CacheBuilderFactory.java │ ├── CacheBuilderGwtTest.java │ ├── CacheBuilderSpecTest.java │ ├── CacheBuilderTest.java │ ├── CacheEvictionTest.java │ ├── CacheExpirationTest.java │ ├── CacheLoaderTest.java │ ├── CacheLoadingTest.java │ ├── CacheManualTest.java │ ├── CacheReferencesTest.java │ ├── CacheRefreshTest.java │ ├── CacheStatsTest.java │ ├── CacheTesting.java │ ├── EmptyCachesTest.java │ ├── ForwardingCacheTest.java │ ├── ForwardingLoadingCacheTest.java │ ├── LocalCacheTest.java │ ├── LocalLoadingCacheTest.java │ ├── LongAdderTest.java │ ├── NullCacheTest.java │ ├── PackageSanityTests.java │ ├── PopulatedCachesTest.java │ ├── RemovalNotificationTest.java │ ├── TestingCacheLoaders.java │ ├── TestingRemovalListeners.java │ └── TestingWeighers.java │ ├── collect │ ├── AbstractBiMapTest.java │ ├── AbstractImmutableSetTest.java │ ├── AbstractImmutableTableTest.java │ ├── AbstractIteratorTest.java │ ├── AbstractMapEntryTest.java │ ├── AbstractMultimapAsMapImplementsMapTest.java │ ├── AbstractRangeSetTest.java │ ├── AbstractSequentialIteratorTest.java │ ├── AbstractTableReadTest.java │ ├── AbstractTableTest.java │ ├── AndroidIncompatible.java │ ├── ArrayListMultimapTest.java │ ├── ArrayTableTest.java │ ├── BenchmarkHelpers.java │ ├── CollectSpliteratorsTest.java │ ├── CollectionBenchmarkSampleData.java │ ├── Collections2Test.java │ ├── ComparatorsTest.java │ ├── ComparisonChainTest.java │ ├── ConcurrentHashMultisetBasherTest.java │ ├── ConcurrentHashMultisetTest.java │ ├── ContiguousSetTest.java │ ├── CountTest.java │ ├── DiscreteDomainTest.java │ ├── EmptyImmutableTableTest.java │ ├── EnumBiMapTest.java │ ├── EnumHashBiMapTest.java │ ├── EnumMultisetTest.java │ ├── EvictingQueueTest.java │ ├── FauxveridesTest.java │ ├── FilteredCollectionsTest.java │ ├── FilteredMultimapTest.java │ ├── FluentIterableTest.java │ ├── ForMapMultimapAsMapImplementsMapTest.java │ ├── ForwardingCollectionTest.java │ ├── ForwardingConcurrentMapTest.java │ ├── ForwardingDequeTest.java │ ├── ForwardingListIteratorTest.java │ ├── ForwardingListMultimapTest.java │ ├── ForwardingListTest.java │ ├── ForwardingMapTest.java │ ├── ForwardingMultimapTest.java │ ├── ForwardingMultisetTest.java │ ├── ForwardingNavigableMapTest.java │ ├── ForwardingNavigableSetTest.java │ ├── ForwardingObjectTest.java │ ├── ForwardingQueueTest.java │ ├── ForwardingSetMultimapTest.java │ ├── ForwardingSetTest.java │ ├── ForwardingSortedMapImplementsMapTest.java │ ├── ForwardingSortedMapTest.java │ ├── ForwardingSortedMultisetTest.java │ ├── ForwardingSortedSetMultimapTest.java │ ├── ForwardingSortedSetTest.java │ ├── ForwardingTableTest.java │ ├── GeneralRangeTest.java │ ├── HashBasedTableTest.java │ ├── HashBiMapTest.java │ ├── HashMultimapTest.java │ ├── HashMultisetTest.java │ ├── ImmutableBiMapTest.java │ ├── ImmutableClassToInstanceMapTest.java │ ├── ImmutableCollectionTest.java │ ├── ImmutableEnumMapTest.java │ ├── ImmutableListMultimapTest.java │ ├── ImmutableListTest.java │ ├── ImmutableMapTest.java │ ├── ImmutableMultimapAsMapImplementsMapTest.java │ ├── ImmutableMultimapTest.java │ ├── ImmutableMultisetTest.java │ ├── ImmutableRangeMapTest.java │ ├── ImmutableRangeSetTest.java │ ├── ImmutableSetMultimapAsMapImplementsMapTest.java │ ├── ImmutableSetMultimapTest.java │ ├── ImmutableSetTest.java │ ├── ImmutableSortedMapTest.java │ ├── ImmutableSortedMultisetTest.java │ ├── ImmutableSortedSetTest.java │ ├── ImmutableTableTest.java │ ├── InternersTest.java │ ├── IterablesTest.java │ ├── IteratorsTest.java │ ├── LegacyComparable.java │ ├── LenientSerializableTester.java │ ├── LinkedHashMultimapTest.java │ ├── LinkedHashMultisetTest.java │ ├── LinkedListMultimapTest.java │ ├── ListsTest.java │ ├── MapMakerInternalMapTest.java │ ├── MapMakerTest.java │ ├── MapsCollectionTest.java │ ├── MapsSortedTransformValuesTest.java │ ├── MapsTest.java │ ├── MapsTransformValuesTest.java │ ├── MapsTransformValuesUnmodifiableIteratorTest.java │ ├── MinMaxPriorityQueueTest.java │ ├── MoreCollectorsTest.java │ ├── MultimapBuilderTest.java │ ├── MultimapsCollectionTest.java │ ├── MultimapsFilterEntriesAsMapTest.java │ ├── MultimapsTest.java │ ├── MultimapsTransformValuesAsMapTest.java │ ├── MultisetsCollectionTest.java │ ├── MultisetsImmutableEntryTest.java │ ├── MultisetsTest.java │ ├── MutableClassToInstanceMapTest.java │ ├── NewCustomTableTest.java │ ├── ObjectArraysTest.java │ ├── OrderingTest.java │ ├── PackageSanityTests.java │ ├── PeekingIteratorTest.java │ ├── QueuesTest.java │ ├── RangeNonGwtTest.java │ ├── RangeTest.java │ ├── RegularImmutableAsListTest.java │ ├── RegularImmutableTableTest.java │ ├── SetOperationsTest.java │ ├── SetsTest.java │ ├── SimpleAbstractMultisetTest.java │ ├── SingletonImmutableTableTest.java │ ├── SortedIterablesTest.java │ ├── SortedListsTest.java │ ├── SpecialRandom.java │ ├── StreamsTest.java │ ├── SubMapMultimapAsMapImplementsMapTest.java │ ├── SynchronizedBiMapTest.java │ ├── SynchronizedDequeTest.java │ ├── SynchronizedMapTest.java │ ├── SynchronizedMultimapTest.java │ ├── SynchronizedNavigableMapTest.java │ ├── SynchronizedNavigableSetTest.java │ ├── SynchronizedQueueTest.java │ ├── SynchronizedSetTest.java │ ├── SynchronizedTableTest.java │ ├── TableCollectionTest.java │ ├── TablesTest.java │ ├── TablesTransformValuesTest.java │ ├── TopKSelectorTest.java │ ├── TransposedTableTest.java │ ├── TreeBasedTableTest.java │ ├── TreeMultimapExplicitTest.java │ ├── TreeMultimapNaturalTest.java │ ├── TreeMultisetTest.java │ ├── TreeRangeMapTest.java │ ├── TreeRangeSetTest.java │ ├── TreeTraverserTest.java │ ├── UnmodifiableIteratorTest.java │ ├── UnmodifiableListIteratorTest.java │ ├── UnmodifiableMultimapAsMapImplementsMapTest.java │ └── WellBehavedMapTest.java │ ├── escape │ ├── ArrayBasedCharEscaperTest.java │ ├── ArrayBasedEscaperMapTest.java │ ├── ArrayBasedUnicodeEscaperTest.java │ ├── CharEscaperBuilderTest.java │ ├── EscapersTest.java │ ├── PackageSanityTests.java │ └── UnicodeEscaperTest.java │ ├── eventbus │ ├── AsyncEventBusTest.java │ ├── DispatcherTest.java │ ├── EventBusTest.java │ ├── PackageSanityTests.java │ ├── ReentrantEventsTest.java │ ├── StringCatcher.java │ ├── SubscriberRegistryTest.java │ ├── SubscriberTest.java │ └── outside │ │ ├── AnnotatedSubscriberFinderTests.java │ │ └── OutsideEventBusTest.java │ ├── graph │ ├── AbstractDirectedGraphTest.java │ ├── AbstractDirectedNetworkTest.java │ ├── AbstractGraphTest.java │ ├── AbstractNetworkTest.java │ ├── AbstractUndirectedGraphTest.java │ ├── AbstractUndirectedNetworkTest.java │ ├── AndroidIncompatible.java │ ├── ConfigurableDirectedGraphTest.java │ ├── ConfigurableDirectedMultiNetworkTest.java │ ├── ConfigurableDirectedNetworkTest.java │ ├── ConfigurableSimpleDirectedGraphTest.java │ ├── ConfigurableSimpleDirectedNetworkTest.java │ ├── ConfigurableSimpleUndirectedGraphTest.java │ ├── ConfigurableSimpleUndirectedNetworkTest.java │ ├── ConfigurableUndirectedGraphTest.java │ ├── ConfigurableUndirectedMultiNetworkTest.java │ ├── ConfigurableUndirectedNetworkTest.java │ ├── ElementOrderTest.java │ ├── EndpointPairTest.java │ ├── GraphEquivalenceTest.java │ ├── GraphMutationTest.java │ ├── GraphPropertiesTest.java │ ├── GraphsTest.java │ ├── ImmutableGraphTest.java │ ├── ImmutableNetworkTest.java │ ├── MapCacheTest.java │ ├── NetworkEquivalenceTest.java │ ├── NetworkMutationTest.java │ ├── PackageSanityTests.java │ ├── TestUtil.java │ └── ValueGraphTest.java │ ├── hash │ ├── AbstractByteHasherTest.java │ ├── AbstractNonStreamingHashFunctionTest.java │ ├── AbstractStreamingHasherTest.java │ ├── AndroidIncompatible.java │ ├── BloomFilterTest.java │ ├── ChecksumHashFunctionTest.java │ ├── Crc32cHashFunctionTest.java │ ├── FarmHashFingerprint64Test.java │ ├── FunnelsTest.java │ ├── HashCodeTest.java │ ├── HashFunctionEnum.java │ ├── HashTestUtils.java │ ├── HashingInputStreamTest.java │ ├── HashingOutputStreamTest.java │ ├── HashingTest.java │ ├── MacHashFunctionTest.java │ ├── MessageDigestHashFunctionTest.java │ ├── Murmur3Hash128Test.java │ ├── Murmur3Hash32Test.java │ ├── PackageSanityTests.java │ └── SipHashFunctionTest.java │ ├── html │ └── HtmlEscapersTest.java │ ├── io │ ├── AppendableWriterTest.java │ ├── BaseEncodingTest.java │ ├── ByteSinkTest.java │ ├── ByteSinkTester.java │ ├── ByteSourceTest.java │ ├── ByteSourceTester.java │ ├── ByteStreamsTest.java │ ├── CharSequenceReaderTest.java │ ├── CharSinkTest.java │ ├── CharSinkTester.java │ ├── CharSourceTest.java │ ├── CharSourceTester.java │ ├── CharStreamsTest.java │ ├── CloseablesTest.java │ ├── CloserTest.java │ ├── CountingInputStreamTest.java │ ├── CountingOutputStreamTest.java │ ├── FileBackedOutputStreamTest.java │ ├── FileTreeTraverserTest.java │ ├── FilesSimplifyPathTest.java │ ├── FilesTest.java │ ├── FlushablesTest.java │ ├── IoTestCase.java │ ├── LineBufferTest.java │ ├── LittleEndianDataInputStreamTest.java │ ├── LittleEndianDataOutputStreamTest.java │ ├── MoreFilesTest.java │ ├── MultiInputStreamTest.java │ ├── MultiReaderTest.java │ ├── PackageSanityTests.java │ ├── PatternFilenameFilterTest.java │ ├── RandomAmountInputStream.java │ ├── ResourcesTest.java │ ├── SourceSinkFactories.java │ ├── SourceSinkFactory.java │ ├── SourceSinkTester.java │ ├── TestByteSink.java │ ├── TestByteSource.java │ ├── TestCharSink.java │ ├── TestCharSource.java │ ├── TestInputStream.java │ ├── TestOption.java │ ├── TestOutputStream.java │ ├── TestReader.java │ ├── TestStreamSupplier.java │ ├── TestWriter.java │ └── testdata │ │ ├── alice_in_wonderland.txt │ │ ├── ascii.txt │ │ ├── i18n.txt │ │ ├── simplifypathnoprefixtests.txt │ │ └── simplifypathwithabsoluteprefixtests.txt │ ├── math │ ├── AndroidIncompatible.java │ ├── BigIntegerMathTest.java │ ├── DoubleMathTest.java │ ├── DoubleUtilsTest.java │ ├── IntMathTest.java │ ├── LinearTransformationTest.java │ ├── LongMathTest.java │ ├── MathBenchmarking.java │ ├── MathPreconditionsTest.java │ ├── MathTesting.java │ ├── PackageSanityTests.java │ ├── PairedStatsAccumulatorTest.java │ ├── PairedStatsTest.java │ ├── QuantilesAlgorithm.java │ ├── QuantilesAlgorithmTest.java │ ├── QuantilesTest.java │ ├── StatsAccumulatorTest.java │ ├── StatsTest.java │ ├── StatsTesting.java │ └── TestPlatform.java │ ├── net │ ├── HostAndPortTest.java │ ├── HostSpecifierTest.java │ ├── HttpHeadersTest.java │ ├── InetAddressesTest.java │ ├── InternetDomainNameTest.java │ ├── MediaTypeTest.java │ ├── PackageSanityTests.java │ ├── PercentEscaperTest.java │ └── UrlEscapersTest.java │ ├── primitives │ ├── AndroidIncompatible.java │ ├── BooleansTest.java │ ├── ByteArrayAsListTest.java │ ├── BytesTest.java │ ├── CharArrayAsListTest.java │ ├── CharsTest.java │ ├── DoubleArrayAsListTest.java │ ├── DoublesTest.java │ ├── FloatArrayAsListTest.java │ ├── FloatsTest.java │ ├── IntArrayAsListTest.java │ ├── IntsTest.java │ ├── LongArrayAsListTest.java │ ├── LongsTest.java │ ├── PackageSanityTests.java │ ├── PrimitivesTest.java │ ├── ShortArrayAsListTest.java │ ├── ShortsTest.java │ ├── SignedBytesTest.java │ ├── UnsignedBytesTest.java │ ├── UnsignedIntegerTest.java │ ├── UnsignedIntsTest.java │ ├── UnsignedLongTest.java │ └── UnsignedLongsTest.java │ ├── reflect │ ├── AbstractInvocationHandlerTest.java │ ├── AndroidIncompatible.java │ ├── ClassPathTest.java │ ├── ElementTest.java │ ├── ImmutableTypeToInstanceMapTest.java │ ├── InvokableTest.java │ ├── MutableTypeToInstanceMapTest.java │ ├── PackageSanityTests.java │ ├── ParameterTest.java │ ├── ReflectionTest.java │ ├── SubtypeTester.java │ ├── TypeParameterTest.java │ ├── TypeResolverTest.java │ ├── TypeTokenResolutionTest.java │ ├── TypeTokenSubtypeTest.java │ ├── TypeTokenTest.java │ ├── TypeVisitorTest.java │ ├── TypesTest.java │ ├── subpackage │ │ └── ClassInSubPackage.java │ └── test.txt │ ├── util │ └── concurrent │ │ ├── AbstractAbstractFutureTest.java │ │ ├── AbstractChainedListenableFutureTest.java │ │ ├── AbstractExecutionThreadServiceTest.java │ │ ├── AbstractFutureBenchmarks.java │ │ ├── AbstractFutureCancellationCauseTest.java │ │ ├── AbstractFutureFallbackAtomicHelperTest.java │ │ ├── AbstractFutureTest.java │ │ ├── AbstractIdleServiceTest.java │ │ ├── AbstractListeningExecutorServiceTest.java │ │ ├── AbstractScheduledServiceTest.java │ │ ├── AbstractServiceTest.java │ │ ├── AggregateFutureStateFallbackAtomicHelperTest.java │ │ ├── AndroidIncompatible.java │ │ ├── AtomicDoubleArrayTest.java │ │ ├── AtomicDoubleTest.java │ │ ├── AtomicLongMapTest.java │ │ ├── AtomicsTest.java │ │ ├── CallablesTest.java │ │ ├── CycleDetectingLockFactoryTest.java │ │ ├── ExecutionListTest.java │ │ ├── ForwardingBlockingDequeTest.java │ │ ├── ForwardingBlockingQueueTest.java │ │ ├── ForwardingCheckedFutureTest.java │ │ ├── ForwardingExecutorServiceTest.java │ │ ├── ForwardingFutureTest.java │ │ ├── ForwardingListenableFutureTest.java │ │ ├── ForwardingListeningExecutorServiceTest.java │ │ ├── ForwardingObjectTester.java │ │ ├── ForwardingObjectTesterTest.java │ │ ├── FutureCallbackTest.java │ │ ├── FuturesGetCheckedInputs.java │ │ ├── FuturesGetCheckedTest.java │ │ ├── FuturesGetDoneTest.java │ │ ├── FuturesGetUncheckedTest.java │ │ ├── FuturesTest.java │ │ ├── FuturesTransformAsyncTest.java │ │ ├── FuturesTransformTest.java │ │ ├── GeneratedMonitorTest.java │ │ ├── InterruptibleMonitorTest.java │ │ ├── InterruptionUtil.java │ │ ├── JSR166TestCase.java │ │ ├── JdkFutureAdaptersTest.java │ │ ├── ListenableFutureTaskTest.java │ │ ├── ListenableFutureTester.java │ │ ├── ListenerCallQueueTest.java │ │ ├── MonitorTestCase.java │ │ ├── MoreExecutorsTest.java │ │ ├── PackageSanityTests.java │ │ ├── RateLimiterTest.java │ │ ├── RunnablesTest.java │ │ ├── SerializingExecutorTest.java │ │ ├── ServiceManagerTest.java │ │ ├── ServiceTest.java │ │ ├── SettableFutureTest.java │ │ ├── SimpleTimeLimiterTest.java │ │ ├── StripedTest.java │ │ ├── SupplementalMonitorTest.java │ │ ├── TestPlatform.java │ │ ├── TestThread.java │ │ ├── ThreadFactoryBuilderTest.java │ │ ├── TrustedInputFutureTest.java │ │ ├── TrustedListenableFutureTaskTest.java │ │ ├── UncaughtExceptionHandlersTest.java │ │ ├── UncheckedThrowingFuture.java │ │ ├── UninterruptibleFutureTest.java │ │ ├── UninterruptibleMonitorTest.java │ │ ├── UninterruptiblesTest.java │ │ ├── UntrustedInputFutureTest.java │ │ ├── WrappingExecutorServiceTest.java │ │ └── WrappingScheduledExecutorServiceTest.java │ └── xml │ └── XmlEscapersTest.java ├── guava ├── pom-template.xml └── src │ └── com │ └── google │ ├── common │ ├── annotations │ │ ├── Beta.java │ │ ├── GwtCompatible.java │ │ ├── GwtIncompatible.java │ │ ├── VisibleForTesting.java │ │ └── package-info.java │ ├── base │ │ ├── Absent.java │ │ ├── AbstractIterator.java │ │ ├── Ascii.java │ │ ├── CaseFormat.java │ │ ├── CharMatcher.java │ │ ├── Charsets.java │ │ ├── CommonMatcher.java │ │ ├── CommonPattern.java │ │ ├── Converter.java │ │ ├── Defaults.java │ │ ├── Enums.java │ │ ├── Equivalence.java │ │ ├── ExtraObjectsMethodsForWeb.java │ │ ├── FinalizablePhantomReference.java │ │ ├── FinalizableReference.java │ │ ├── FinalizableReferenceQueue.java │ │ ├── FinalizableSoftReference.java │ │ ├── FinalizableWeakReference.java │ │ ├── Function.java │ │ ├── FunctionalEquivalence.java │ │ ├── Functions.java │ │ ├── JdkPattern.java │ │ ├── Joiner.java │ │ ├── MoreObjects.java │ │ ├── Objects.java │ │ ├── Optional.java │ │ ├── PairwiseEquivalence.java │ │ ├── PatternCompiler.java │ │ ├── Platform.java │ │ ├── Preconditions.java │ │ ├── Predicate.java │ │ ├── Predicates.java │ │ ├── Present.java │ │ ├── SmallCharMatcher.java │ │ ├── Splitter.java │ │ ├── StandardSystemProperty.java │ │ ├── Stopwatch.java │ │ ├── Strings.java │ │ ├── Supplier.java │ │ ├── Suppliers.java │ │ ├── Throwables.java │ │ ├── Ticker.java │ │ ├── Utf8.java │ │ ├── Verify.java │ │ ├── VerifyException.java │ │ ├── internal │ │ │ └── Finalizer.java │ │ └── package-info.java │ ├── cache │ │ ├── AbstractCache.java │ │ ├── AbstractLoadingCache.java │ │ ├── Cache.java │ │ ├── CacheBuilder.java │ │ ├── CacheBuilderSpec.java │ │ ├── CacheLoader.java │ │ ├── CacheStats.java │ │ ├── ForwardingCache.java │ │ ├── ForwardingLoadingCache.java │ │ ├── LoadingCache.java │ │ ├── LocalCache.java │ │ ├── LongAddable.java │ │ ├── LongAddables.java │ │ ├── LongAdder.java │ │ ├── RemovalCause.java │ │ ├── RemovalListener.java │ │ ├── RemovalListeners.java │ │ ├── RemovalNotification.java │ │ ├── Striped64.java │ │ ├── Weigher.java │ │ └── package-info.java │ ├── collect │ │ ├── AbstractBiMap.java │ │ ├── AbstractIndexedListIterator.java │ │ ├── AbstractIterator.java │ │ ├── AbstractListMultimap.java │ │ ├── AbstractMapBasedMultimap.java │ │ ├── AbstractMapBasedMultiset.java │ │ ├── AbstractMapEntry.java │ │ ├── AbstractMultimap.java │ │ ├── AbstractMultiset.java │ │ ├── AbstractNavigableMap.java │ │ ├── AbstractRangeSet.java │ │ ├── AbstractSequentialIterator.java │ │ ├── AbstractSetMultimap.java │ │ ├── AbstractSortedKeySortedSetMultimap.java │ │ ├── AbstractSortedMultiset.java │ │ ├── AbstractSortedSetMultimap.java │ │ ├── AbstractTable.java │ │ ├── AllEqualOrdering.java │ │ ├── ArrayListMultimap.java │ │ ├── ArrayTable.java │ │ ├── BiMap.java │ │ ├── BinaryTreeTraverser.java │ │ ├── BoundType.java │ │ ├── ByFunctionOrdering.java │ │ ├── CartesianList.java │ │ ├── ClassToInstanceMap.java │ │ ├── CollectCollectors.java │ │ ├── CollectPreconditions.java │ │ ├── CollectSpliterators.java │ │ ├── Collections2.java │ │ ├── ComparatorOrdering.java │ │ ├── Comparators.java │ │ ├── ComparisonChain.java │ │ ├── CompoundOrdering.java │ │ ├── ComputationException.java │ │ ├── ConcurrentHashMultiset.java │ │ ├── ConsumingQueueIterator.java │ │ ├── ContiguousSet.java │ │ ├── Count.java │ │ ├── Cut.java │ │ ├── DenseImmutableTable.java │ │ ├── DescendingImmutableSortedMultiset.java │ │ ├── DescendingImmutableSortedSet.java │ │ ├── DescendingMultiset.java │ │ ├── DiscreteDomain.java │ │ ├── EmptyContiguousSet.java │ │ ├── EmptyImmutableListMultimap.java │ │ ├── EmptyImmutableSetMultimap.java │ │ ├── EnumBiMap.java │ │ ├── EnumHashBiMap.java │ │ ├── EnumMultiset.java │ │ ├── EvictingQueue.java │ │ ├── ExplicitOrdering.java │ │ ├── FilteredEntryMultimap.java │ │ ├── FilteredEntrySetMultimap.java │ │ ├── FilteredKeyListMultimap.java │ │ ├── FilteredKeyMultimap.java │ │ ├── FilteredKeySetMultimap.java │ │ ├── FilteredMultimap.java │ │ ├── FilteredMultimapValues.java │ │ ├── FilteredSetMultimap.java │ │ ├── FluentIterable.java │ │ ├── ForwardingBlockingDeque.java │ │ ├── ForwardingCollection.java │ │ ├── ForwardingConcurrentMap.java │ │ ├── ForwardingDeque.java │ │ ├── ForwardingImmutableCollection.java │ │ ├── ForwardingImmutableList.java │ │ ├── ForwardingImmutableMap.java │ │ ├── ForwardingImmutableSet.java │ │ ├── ForwardingIterator.java │ │ ├── ForwardingList.java │ │ ├── ForwardingListIterator.java │ │ ├── ForwardingListMultimap.java │ │ ├── ForwardingMap.java │ │ ├── ForwardingMapEntry.java │ │ ├── ForwardingMultimap.java │ │ ├── ForwardingMultiset.java │ │ ├── ForwardingNavigableMap.java │ │ ├── ForwardingNavigableSet.java │ │ ├── ForwardingObject.java │ │ ├── ForwardingQueue.java │ │ ├── ForwardingSet.java │ │ ├── ForwardingSetMultimap.java │ │ ├── ForwardingSortedMap.java │ │ ├── ForwardingSortedMultiset.java │ │ ├── ForwardingSortedSet.java │ │ ├── ForwardingSortedSetMultimap.java │ │ ├── ForwardingTable.java │ │ ├── GeneralRange.java │ │ ├── GwtTransient.java │ │ ├── HashBasedTable.java │ │ ├── HashBiMap.java │ │ ├── HashMultimap.java │ │ ├── HashMultiset.java │ │ ├── Hashing.java │ │ ├── ImmutableAsList.java │ │ ├── ImmutableBiMap.java │ │ ├── ImmutableBiMapFauxverideShim.java │ │ ├── ImmutableClassToInstanceMap.java │ │ ├── ImmutableCollection.java │ │ ├── ImmutableEntry.java │ │ ├── ImmutableEnumMap.java │ │ ├── ImmutableEnumSet.java │ │ ├── ImmutableList.java │ │ ├── ImmutableListMultimap.java │ │ ├── ImmutableMap.java │ │ ├── ImmutableMapEntry.java │ │ ├── ImmutableMapEntrySet.java │ │ ├── ImmutableMapKeySet.java │ │ ├── ImmutableMapValues.java │ │ ├── ImmutableMultimap.java │ │ ├── ImmutableMultiset.java │ │ ├── ImmutableRangeMap.java │ │ ├── ImmutableRangeSet.java │ │ ├── ImmutableSet.java │ │ ├── ImmutableSetMultimap.java │ │ ├── ImmutableSortedAsList.java │ │ ├── ImmutableSortedMap.java │ │ ├── ImmutableSortedMapFauxverideShim.java │ │ ├── ImmutableSortedMultiset.java │ │ ├── ImmutableSortedMultisetFauxverideShim.java │ │ ├── ImmutableSortedSet.java │ │ ├── ImmutableSortedSetFauxverideShim.java │ │ ├── ImmutableTable.java │ │ ├── Interner.java │ │ ├── Interners.java │ │ ├── Iterables.java │ │ ├── Iterators.java │ │ ├── LexicographicalOrdering.java │ │ ├── LinkedHashMultimap.java │ │ ├── LinkedHashMultiset.java │ │ ├── LinkedListMultimap.java │ │ ├── ListMultimap.java │ │ ├── Lists.java │ │ ├── MapDifference.java │ │ ├── MapMaker.java │ │ ├── MapMakerInternalMap.java │ │ ├── Maps.java │ │ ├── MinMaxPriorityQueue.java │ │ ├── MoreCollectors.java │ │ ├── Multimap.java │ │ ├── MultimapBuilder.java │ │ ├── Multimaps.java │ │ ├── Multiset.java │ │ ├── Multisets.java │ │ ├── MultitransformedIterator.java │ │ ├── MutableClassToInstanceMap.java │ │ ├── NaturalOrdering.java │ │ ├── NullsFirstOrdering.java │ │ ├── NullsLastOrdering.java │ │ ├── ObjectArrays.java │ │ ├── Ordering.java │ │ ├── PeekingIterator.java │ │ ├── Platform.java │ │ ├── Queues.java │ │ ├── Range.java │ │ ├── RangeGwtSerializationDependencies.java │ │ ├── RangeMap.java │ │ ├── RangeSet.java │ │ ├── RegularContiguousSet.java │ │ ├── RegularImmutableAsList.java │ │ ├── RegularImmutableBiMap.java │ │ ├── RegularImmutableList.java │ │ ├── RegularImmutableMap.java │ │ ├── RegularImmutableMultiset.java │ │ ├── RegularImmutableSet.java │ │ ├── RegularImmutableSortedMultiset.java │ │ ├── RegularImmutableSortedSet.java │ │ ├── RegularImmutableTable.java │ │ ├── ReverseNaturalOrdering.java │ │ ├── ReverseOrdering.java │ │ ├── RowSortedTable.java │ │ ├── Serialization.java │ │ ├── SetMultimap.java │ │ ├── Sets.java │ │ ├── SingletonImmutableBiMap.java │ │ ├── SingletonImmutableList.java │ │ ├── SingletonImmutableSet.java │ │ ├── SingletonImmutableTable.java │ │ ├── SortedIterable.java │ │ ├── SortedIterables.java │ │ ├── SortedLists.java │ │ ├── SortedMapDifference.java │ │ ├── SortedMultiset.java │ │ ├── SortedMultisetBridge.java │ │ ├── SortedMultisets.java │ │ ├── SortedSetMultimap.java │ │ ├── SparseImmutableTable.java │ │ ├── StandardRowSortedTable.java │ │ ├── StandardTable.java │ │ ├── Streams.java │ │ ├── Synchronized.java │ │ ├── Table.java │ │ ├── Tables.java │ │ ├── TopKSelector.java │ │ ├── TransformedIterator.java │ │ ├── TransformedListIterator.java │ │ ├── TreeBasedTable.java │ │ ├── TreeMultimap.java │ │ ├── TreeMultiset.java │ │ ├── TreeRangeMap.java │ │ ├── TreeRangeSet.java │ │ ├── TreeTraverser.java │ │ ├── UnmodifiableIterator.java │ │ ├── UnmodifiableListIterator.java │ │ ├── UnmodifiableSortedMultiset.java │ │ ├── UsingToStringOrdering.java │ │ ├── WellBehavedMap.java │ │ └── package-info.java │ ├── escape │ │ ├── ArrayBasedCharEscaper.java │ │ ├── ArrayBasedEscaperMap.java │ │ ├── ArrayBasedUnicodeEscaper.java │ │ ├── CharEscaper.java │ │ ├── CharEscaperBuilder.java │ │ ├── Escaper.java │ │ ├── Escapers.java │ │ ├── Platform.java │ │ ├── UnicodeEscaper.java │ │ └── package-info.java │ ├── eventbus │ │ ├── AllowConcurrentEvents.java │ │ ├── AsyncEventBus.java │ │ ├── DeadEvent.java │ │ ├── Dispatcher.java │ │ ├── EventBus.java │ │ ├── Subscribe.java │ │ ├── Subscriber.java │ │ ├── SubscriberExceptionContext.java │ │ ├── SubscriberExceptionHandler.java │ │ ├── SubscriberRegistry.java │ │ └── package-info.java │ ├── graph │ │ ├── AbstractBaseGraph.java │ │ ├── AbstractDirectedNetworkConnections.java │ │ ├── AbstractGraph.java │ │ ├── AbstractGraphBuilder.java │ │ ├── AbstractNetwork.java │ │ ├── AbstractUndirectedNetworkConnections.java │ │ ├── AbstractValueGraph.java │ │ ├── BaseGraph.java │ │ ├── ConfigurableMutableGraph.java │ │ ├── ConfigurableMutableNetwork.java │ │ ├── ConfigurableMutableValueGraph.java │ │ ├── ConfigurableNetwork.java │ │ ├── ConfigurableValueGraph.java │ │ ├── DirectedGraphConnections.java │ │ ├── DirectedMultiNetworkConnections.java │ │ ├── DirectedNetworkConnections.java │ │ ├── EdgesConnecting.java │ │ ├── ElementOrder.java │ │ ├── EndpointPair.java │ │ ├── EndpointPairIterator.java │ │ ├── ForwardingGraph.java │ │ ├── Graph.java │ │ ├── GraphBuilder.java │ │ ├── GraphConnections.java │ │ ├── GraphConstants.java │ │ ├── Graphs.java │ │ ├── ImmutableGraph.java │ │ ├── ImmutableNetwork.java │ │ ├── ImmutableValueGraph.java │ │ ├── MapIteratorCache.java │ │ ├── MapRetrievalCache.java │ │ ├── MultiEdgesConnecting.java │ │ ├── MutableGraph.java │ │ ├── MutableNetwork.java │ │ ├── MutableValueGraph.java │ │ ├── Network.java │ │ ├── NetworkBuilder.java │ │ ├── NetworkConnections.java │ │ ├── UndirectedGraphConnections.java │ │ ├── UndirectedMultiNetworkConnections.java │ │ ├── UndirectedNetworkConnections.java │ │ ├── ValueGraph.java │ │ ├── ValueGraphBuilder.java │ │ └── package-info.java │ ├── hash │ │ ├── AbstractByteHasher.java │ │ ├── AbstractCompositeHashFunction.java │ │ ├── AbstractHasher.java │ │ ├── AbstractNonStreamingHashFunction.java │ │ ├── AbstractStreamingHashFunction.java │ │ ├── BloomFilter.java │ │ ├── BloomFilterStrategies.java │ │ ├── ChecksumHashFunction.java │ │ ├── Crc32cHashFunction.java │ │ ├── FarmHashFingerprint64.java │ │ ├── Funnel.java │ │ ├── Funnels.java │ │ ├── HashCode.java │ │ ├── HashFunction.java │ │ ├── Hasher.java │ │ ├── Hashing.java │ │ ├── HashingInputStream.java │ │ ├── HashingOutputStream.java │ │ ├── LittleEndianByteArray.java │ │ ├── MacHashFunction.java │ │ ├── MessageDigestHashFunction.java │ │ ├── Murmur3_128HashFunction.java │ │ ├── Murmur3_32HashFunction.java │ │ ├── PrimitiveSink.java │ │ ├── SipHashFunction.java │ │ └── package-info.java │ ├── html │ │ ├── HtmlEscapers.java │ │ └── package-info.java │ ├── io │ │ ├── AndroidIncompatible.java │ │ ├── AppendableWriter.java │ │ ├── BaseEncoding.java │ │ ├── ByteArrayDataInput.java │ │ ├── ByteArrayDataOutput.java │ │ ├── ByteProcessor.java │ │ ├── ByteSink.java │ │ ├── ByteSource.java │ │ ├── ByteStreams.java │ │ ├── CharSequenceReader.java │ │ ├── CharSink.java │ │ ├── CharSource.java │ │ ├── CharStreams.java │ │ ├── Closeables.java │ │ ├── Closer.java │ │ ├── CountingInputStream.java │ │ ├── CountingOutputStream.java │ │ ├── FileBackedOutputStream.java │ │ ├── FileWriteMode.java │ │ ├── Files.java │ │ ├── Flushables.java │ │ ├── InsecureRecursiveDeleteException.java │ │ ├── LineBuffer.java │ │ ├── LineProcessor.java │ │ ├── LineReader.java │ │ ├── LittleEndianDataInputStream.java │ │ ├── LittleEndianDataOutputStream.java │ │ ├── MoreFiles.java │ │ ├── MultiInputStream.java │ │ ├── MultiReader.java │ │ ├── PatternFilenameFilter.java │ │ ├── ReaderInputStream.java │ │ ├── RecursiveDeleteOption.java │ │ ├── Resources.java │ │ └── package-info.java │ ├── math │ │ ├── BigIntegerMath.java │ │ ├── DoubleMath.java │ │ ├── DoubleUtils.java │ │ ├── IntMath.java │ │ ├── LinearTransformation.java │ │ ├── LongMath.java │ │ ├── MathPreconditions.java │ │ ├── PairedStats.java │ │ ├── PairedStatsAccumulator.java │ │ ├── Quantiles.java │ │ ├── Stats.java │ │ ├── StatsAccumulator.java │ │ └── package-info.java │ ├── net │ │ ├── HostAndPort.java │ │ ├── HostSpecifier.java │ │ ├── HttpHeaders.java │ │ ├── InetAddresses.java │ │ ├── InternetDomainName.java │ │ ├── MediaType.java │ │ ├── PercentEscaper.java │ │ ├── UrlEscapers.java │ │ └── package-info.java │ ├── primitives │ │ ├── Booleans.java │ │ ├── Bytes.java │ │ ├── Chars.java │ │ ├── Doubles.java │ │ ├── Floats.java │ │ ├── Ints.java │ │ ├── Longs.java │ │ ├── ParseRequest.java │ │ ├── Primitives.java │ │ ├── Shorts.java │ │ ├── SignedBytes.java │ │ ├── UnsignedBytes.java │ │ ├── UnsignedInteger.java │ │ ├── UnsignedInts.java │ │ ├── UnsignedLong.java │ │ ├── UnsignedLongs.java │ │ └── package-info.java │ ├── reflect │ │ ├── AbstractInvocationHandler.java │ │ ├── ClassPath.java │ │ ├── Element.java │ │ ├── ImmutableTypeToInstanceMap.java │ │ ├── Invokable.java │ │ ├── MutableTypeToInstanceMap.java │ │ ├── Parameter.java │ │ ├── Reflection.java │ │ ├── TypeCapture.java │ │ ├── TypeParameter.java │ │ ├── TypeResolver.java │ │ ├── TypeToInstanceMap.java │ │ ├── TypeToken.java │ │ ├── TypeVisitor.java │ │ ├── Types.java │ │ └── package-info.java │ ├── util │ │ └── concurrent │ │ │ ├── AbstractCatchingFuture.java │ │ │ ├── AbstractCheckedFuture.java │ │ │ ├── AbstractExecutionThreadService.java │ │ │ ├── AbstractFuture.java │ │ │ ├── AbstractIdleService.java │ │ │ ├── AbstractListeningExecutorService.java │ │ │ ├── AbstractScheduledService.java │ │ │ ├── AbstractService.java │ │ │ ├── AbstractTransformFuture.java │ │ │ ├── AggregateFuture.java │ │ │ ├── AggregateFutureState.java │ │ │ ├── AsyncCallable.java │ │ │ ├── AsyncFunction.java │ │ │ ├── AtomicDouble.java │ │ │ ├── AtomicDoubleArray.java │ │ │ ├── AtomicLongMap.java │ │ │ ├── Atomics.java │ │ │ ├── Callables.java │ │ │ ├── CheckedFuture.java │ │ │ ├── CollectionFuture.java │ │ │ ├── CombinedFuture.java │ │ │ ├── CycleDetectingLockFactory.java │ │ │ ├── ExecutionError.java │ │ │ ├── ExecutionList.java │ │ │ ├── FakeTimeLimiter.java │ │ │ ├── ForwardingBlockingDeque.java │ │ │ ├── ForwardingBlockingQueue.java │ │ │ ├── ForwardingCheckedFuture.java │ │ │ ├── ForwardingExecutorService.java │ │ │ ├── ForwardingFuture.java │ │ │ ├── ForwardingListenableFuture.java │ │ │ ├── ForwardingListeningExecutorService.java │ │ │ ├── FutureCallback.java │ │ │ ├── Futures.java │ │ │ ├── FuturesGetChecked.java │ │ │ ├── GwtFuturesCatchingSpecialization.java │ │ │ ├── ImmediateFuture.java │ │ │ ├── InterruptibleTask.java │ │ │ ├── JdkFutureAdapters.java │ │ │ ├── ListenableFuture.java │ │ │ ├── ListenableFutureTask.java │ │ │ ├── ListenableScheduledFuture.java │ │ │ ├── ListenerCallQueue.java │ │ │ ├── ListeningExecutorService.java │ │ │ ├── ListeningScheduledExecutorService.java │ │ │ ├── Monitor.java │ │ │ ├── MoreExecutors.java │ │ │ ├── Partially.java │ │ │ ├── Platform.java │ │ │ ├── RateLimiter.java │ │ │ ├── Runnables.java │ │ │ ├── SerializingExecutor.java │ │ │ ├── Service.java │ │ │ ├── ServiceManager.java │ │ │ ├── SettableFuture.java │ │ │ ├── SimpleTimeLimiter.java │ │ │ ├── SmoothRateLimiter.java │ │ │ ├── Striped.java │ │ │ ├── ThreadFactoryBuilder.java │ │ │ ├── TimeLimiter.java │ │ │ ├── TimeoutFuture.java │ │ │ ├── TrustedListenableFutureTask.java │ │ │ ├── UncaughtExceptionHandlers.java │ │ │ ├── UncheckedExecutionException.java │ │ │ ├── UncheckedTimeoutException.java │ │ │ ├── Uninterruptibles.java │ │ │ ├── WrappingExecutorService.java │ │ │ ├── WrappingScheduledExecutorService.java │ │ │ └── package-info.java │ └── xml │ │ ├── XmlEscapers.java │ │ └── package-info.java │ └── thirdparty │ └── publicsuffix │ ├── PublicSuffixPatterns.java │ ├── PublicSuffixType.java │ └── TrieParser.java ├── javadoc-stylesheet.css ├── mr ├── checkout.sh └── writepom.py ├── pom-template.xml └── util ├── deploy_snapshot.sh ├── settings.xml └── update_snapshot_docs.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Known text files 5 | *.java text 6 | *.xml text 7 | *.yml text 8 | *.md text 9 | *.sh text 10 | *.css text 11 | *.txt text 12 | 13 | # Known binary files 14 | *.jar binary -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Maven 2 | target/ 3 | *.ser 4 | *.ec 5 | 6 | # IntelliJ Idea 7 | .idea/ 8 | out/ 9 | *.ipr 10 | *.iws 11 | *.iml 12 | 13 | # Eclipse 14 | .classpath 15 | .project 16 | .settings/ 17 | .metadata/ 18 | 19 | # OS X 20 | .DS_Store 21 | 22 | # for sparse-checkout maven 23 | pom.xml 24 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: java 4 | 5 | jdk: 6 | - oraclejdk8 7 | 8 | # https://github.com/travis-ci/travis-ci/issues/3259#issuecomment-130860338 9 | addons: 10 | apt: 11 | packages: 12 | - oracle-java8-installer 13 | 14 | install: mvn -B install -U -DskipTests=true 15 | 16 | # https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received 17 | script: travis_wait 360 mvn -B verify -U -Dmaven.javadoc.skip=true -Dgwt.test.include=**/DoesNotMatchAnyTests.java 18 | 19 | after_success: 20 | - util/deploy_snapshot.sh 21 | - util/update_snapshot_docs.sh 22 | 23 | cache: 24 | directories: 25 | - $HOME/.m2 26 | 27 | env: 28 | global: 29 | - secure: "IPvqFwnLx/GXyImJuwM2MIvzDlBLqEXaQXFGJgAP1nbuenaLAloOOlqQ+iy2FDLBD/j+zjSbR3WWF9DIT4YxAS03Z6iMwxh7GCfk+tyhVtLQnwt7w1rquyhbrrGFsY5U0hr5q80Ww6J+zfp2yZ8aP9FHSy5ahNjqys4FtubOWLk=" 30 | - secure: "G77Wt2h2fceQ867i1uwOjUygrNeBpLRS8sxgfUZsO66dvlrx1wYFpZLLRIiPcy01peUTE2SvXIXLHKe9v3AlMonPibsQtvvfQSVfx+jgKwLZx9cuf/M5VQlD3etRUh4K/rBezlxWRroeeKcM2DQqiEVLsTDSyNZV9kVAjwfLTvM=" 31 | - secure: "wieIClPLTXS3QjDzqyp0TqIrVP/Q6iWNPOtcUQYfdDZJGwufE61laTFtzVKXZRb7uJ4GXDObcVU3AcpAwkTX/5sEksBxgv3TZ5Qi0mVx2GRmbE06ULLxi7sPnTCZ/VFtselDWcWArWGAcdCjW9gcCrgj5K/+sYpVKz9a8V+SDM4=" 32 | 33 | branches: 34 | only: 35 | - master 36 | - /^release.*$/ 37 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Doug Lea 2 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ExtraObjectsMethodsForWeb.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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.base; 16 | 17 | import javax.annotation.Nullable; 18 | 19 | /** 20 | * Holder for extra methods of {@code Objects} only in web. 21 | */ 22 | abstract class ExtraObjectsMethodsForWeb { 23 | public static boolean equal(@Nullable String a, @Nullable String b) { 24 | return a == b; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LongAddables.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.cache; 18 | 19 | /** 20 | * GWT emulation for LongAddables. 21 | * 22 | * @author Louis Wasserman 23 | */ 24 | final class LongAddables { 25 | public static LongAddable create() { 26 | return new LongAdder(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LongAdder.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.cache; 18 | 19 | /** 20 | * GWT emulated version of LongAdder. 21 | * 22 | * @author Charles Fry 23 | */ 24 | class LongAdder implements LongAddable { 25 | 26 | private long value; 27 | 28 | public void increment() { 29 | value++; 30 | } 31 | 32 | public void add(long x) { 33 | value += x; 34 | } 35 | 36 | public long sum() { 37 | return value; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RangeGwtSerializationDependencies.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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 | import java.io.Serializable; 21 | 22 | @GwtCompatible(emulated = true) 23 | abstract class RangeGwtSerializationDependencies implements Serializable { 24 | C dummy; 25 | } 26 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableList.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 | import static java.util.Collections.unmodifiableList; 20 | 21 | import java.util.List; 22 | 23 | /** 24 | * GWT emulated version of {@link RegularImmutableList}. 25 | * 26 | * @author Hayward Chan 27 | */ 28 | class RegularImmutableList extends ForwardingImmutableList { 29 | private final List delegate; 30 | 31 | RegularImmutableList(List delegate) { 32 | // TODO(cpovirk): avoid redundant unmodifiableList wrapping 33 | this.delegate = unmodifiableList(delegate); 34 | } 35 | 36 | @Override List delegateList() { 37 | return delegate; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMap.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 | import java.util.Map; 20 | 21 | /** 22 | * GWt emulation of {@link RegularImmutableMap}. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | final class RegularImmutableMap extends ForwardingImmutableMap { 27 | 28 | RegularImmutableMap(Map delegate) { 29 | super(delegate); 30 | } 31 | 32 | RegularImmutableMap(Entry... entries) { 33 | super(entries); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableSet.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 | import java.util.Collections; 20 | import java.util.Set; 21 | 22 | /** 23 | * GWT emulation of {@link RegularImmutableSet}. 24 | * 25 | * @author Hayward Chan 26 | */ 27 | final class RegularImmutableSet extends ForwardingImmutableSet { 28 | static final RegularImmutableSet EMPTY = new RegularImmutableSet( 29 | Collections.emptySet()); 30 | 31 | RegularImmutableSet(Set delegate) { 32 | super(delegate); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableSortedSet.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 | import java.util.SortedSet; 20 | 21 | /** 22 | * GWT emulation of {@link RegularImmutableSortedSet}. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | final class RegularImmutableSortedSet extends ImmutableSortedSet { 27 | 28 | /** true if this set is a subset of another immutable sorted set. */ 29 | final boolean isSubset; 30 | 31 | RegularImmutableSortedSet(SortedSet delegate, boolean isSubset) { 32 | super(delegate); 33 | this.isSubset = isSubset; 34 | } 35 | 36 | @Override ImmutableList createAsList() { 37 | return new ImmutableSortedAsList(this, ImmutableList.asImmutableList(toArray())); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.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.escape; 18 | 19 | /** 20 | * @author Jesse Wilson 21 | */ 22 | final class Platform { 23 | 24 | private static final char[] CHAR_BUFFER = new char[1024]; 25 | 26 | static char[] charBufferFromThreadLocal() { 27 | // ThreadLocal is not available to GWT, so we always reuse the same 28 | // instance. It is always safe to return the same instance because 29 | // javascript is single-threaded, and only used by blocks that doesn't 30 | // involve async callbacks. 31 | return CHAR_BUFFER; 32 | } 33 | 34 | private Platform() {} 35 | } 36 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/InterruptibleTask.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 | * Emulation for InterruptibleTask in GWT. 21 | */ 22 | abstract class InterruptibleTask implements Runnable { 23 | @Override public void run() { 24 | runInterruptibly(); 25 | } 26 | 27 | abstract void runInterruptibly(); 28 | 29 | abstract boolean wasInterrupted(); 30 | 31 | final void interruptTask() {} 32 | } 33 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 | * Methods factored out so that they can be emulated differently in GWT. 21 | */ 22 | final class Platform { 23 | static boolean isInstanceOfThrowableClass(Throwable t, Class expectedClass) { 24 | /* 25 | * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class 26 | * under GWT. 27 | */ 28 | return true; 29 | } 30 | 31 | private Platform() {} 32 | } 33 | -------------------------------------------------------------------------------- /guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Uninterruptibles.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent.ExecutionException; 20 | import java.util.concurrent.Future; 21 | 22 | /** 23 | * Emulation of Uninterruptibles in GWT. 24 | */ 25 | public final class Uninterruptibles { 26 | 27 | private Uninterruptibles() { 28 | } 29 | 30 | public static V getUninterruptibly(Future future) throws ExecutionException { 31 | try { 32 | return future.get(); 33 | } catch (InterruptedException e) { 34 | // Should never be thrown in GWT but play it safe 35 | throw new IllegalStateException(e); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/lang/Lang.gwt.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/lang/super/java/lang/InterruptedException.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 java.lang; 18 | 19 | /** 20 | * Minimal emulation of {@link java.lang.InterruptedException}, that should 21 | * only be used in method signatures. New GWT code should not reference this 22 | * class at all. It is here only to ease the GWTification of common code. 23 | * 24 | * @author Tom O'Neill 25 | */ 26 | public class InterruptedException extends Exception { 27 | public InterruptedException() {} 28 | 29 | public InterruptedException(String message) { 30 | super(message); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/lang/super/java/lang/reflect/UndeclaredThrowableException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.lang.reflect; 18 | 19 | /** 20 | * GWT emulation of UndeclaredThrowableException. 21 | */ 22 | public class UndeclaredThrowableException extends RuntimeException { 23 | public UndeclaredThrowableException(Throwable undeclaredThrowable) { 24 | super(undeclaredThrowable); 25 | } 26 | 27 | public UndeclaredThrowableException(Throwable undeclaredThrowable, String message) { 28 | super(message, undeclaredThrowable); 29 | } 30 | 31 | public Throwable getUndeclaredThrowable() { 32 | return getCause(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/Util.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/Callable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of Callable. 21 | * 22 | * @author Charles Fry 23 | */ 24 | public interface Callable { 25 | V call() throws Exception; 26 | } 27 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/CancellationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of CancellationException. 21 | */ 22 | public class CancellationException extends IllegalStateException { 23 | 24 | public CancellationException() {} 25 | 26 | public CancellationException(String message) { 27 | super(message); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/ConcurrentMap.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 java.util.concurrent; 18 | 19 | import java.util.Map; 20 | 21 | /** 22 | * Minimal GWT emulation of a map providing atomic operations. 23 | * 24 | * @author Jesse Wilson 25 | */ 26 | public interface ConcurrentMap extends Map { 27 | 28 | V putIfAbsent(K key, V value); 29 | 30 | boolean remove(Object key, Object value); 31 | 32 | V replace(K key, V value); 33 | 34 | boolean replace(K key, V oldValue, V newValue); 35 | } 36 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/Delayed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a modified version of 3 | * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/Delayed.java?revision=1.11 4 | * which contained the following notice: 5 | * 6 | * Written by Doug Lea with assistance from members of JCP JSR-166 7 | * Expert Group and released to the public domain, as explained at 8 | * http://creativecommons.org/publicdomain/zero/1.0/ 9 | */ 10 | 11 | package java.util.concurrent; 12 | 13 | /** 14 | * Emulation of Delayed. 15 | */ 16 | public interface Delayed extends Comparable { 17 | long getDelay(TimeUnit unit); 18 | } 19 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/ExecutionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of ExecutionException. 21 | * 22 | * @author Charles Fry 23 | */ 24 | public class ExecutionException extends Exception { 25 | protected ExecutionException() { } 26 | 27 | protected ExecutionException(String message) { 28 | super(message); 29 | } 30 | 31 | public ExecutionException(String message, Throwable cause) { 32 | super(message, cause); 33 | } 34 | 35 | public ExecutionException(Throwable cause) { 36 | super(cause); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/Executor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of Executor. 21 | */ 22 | public interface Executor { 23 | void execute(Runnable command); 24 | } -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/Executors.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a modified version of 3 | * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/Executors.java?revision=1.90 4 | * which contained the following notice: 5 | * 6 | * Written by Doug Lea with assistance from members of JCP JSR-166 7 | * Expert Group and released to the public domain, as explained at 8 | * http://creativecommons.org/publicdomain/zero/1.0/ 9 | */ 10 | 11 | package java.util.concurrent; 12 | 13 | /** 14 | * Emulation of executors. 15 | */ 16 | public class Executors { 17 | 18 | public static Callable callable(Runnable task, T result) { 19 | if (task == null) { 20 | throw new NullPointerException(); 21 | } 22 | return new RunnableAdapter(task, result); 23 | } 24 | 25 | public static Callable callable(Runnable task) { 26 | if (task == null) { 27 | throw new NullPointerException(); 28 | } 29 | return new RunnableAdapter(task, null); 30 | } 31 | 32 | static final class RunnableAdapter implements Callable { 33 | 34 | final Runnable task; 35 | final T result; 36 | 37 | RunnableAdapter(Runnable task, T result) { 38 | this.task = task; 39 | this.result = result; 40 | } 41 | 42 | public T call() { 43 | task.run(); 44 | return result; 45 | } 46 | } 47 | 48 | private Executors() { 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/RejectedExecutionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent; 18 | 19 | /** 20 | * GWT emulation of RejectedExecutionException. 21 | */ 22 | public class RejectedExecutionException extends RuntimeException { 23 | public RejectedExecutionException() { 24 | } 25 | 26 | public RejectedExecutionException(String message) { 27 | super(message); 28 | } 29 | 30 | public RejectedExecutionException(String message, Throwable cause) { 31 | super(message, cause); 32 | } 33 | 34 | public RejectedExecutionException(Throwable cause) { 35 | super(cause); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/RunnableFuture.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of RunnableFuture. 21 | */ 22 | public interface RunnableFuture extends Runnable, Future { 23 | } 24 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/ScheduledFuture.java: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is a modified version of 3 | * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/ScheduledFuture.java?revision=1.6 4 | * which contained the following notice: 5 | * 6 | * Written by Doug Lea with assistance from members of JCP JSR-166 7 | * Expert Group and released to the public domain, as explained at 8 | * http://creativecommons.org/publicdomain/zero/1.0/ 9 | */ 10 | 11 | package java.util.concurrent; 12 | 13 | /** 14 | * Emulation of ScheduleFuture. 15 | * 16 | * @param value type returned by the future. 17 | */ 18 | public interface ScheduledFuture extends Delayed, Future { 19 | } 20 | -------------------------------------------------------------------------------- /guava-gwt/src-super/java/util/super/java/util/concurrent/TimeoutException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 java.util.concurrent; 18 | 19 | /** 20 | * Emulation of TimeoutException. 21 | */ 22 | public class TimeoutException extends Exception { 23 | public TimeoutException() {} 24 | 25 | public TimeoutException(String message) { 26 | super(message); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/ForceGuavaCompilation.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /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-gwt/src/com/google/common/annotations/Annotations.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/AllEqualOrdering_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 | import com.google.gwt.user.client.rpc.SerializationStreamReader; 20 | import com.google.gwt.user.client.rpc.SerializationStreamWriter; 21 | 22 | /** 23 | * This class implements the GWT serialization of {@link AllEqualOrdering}. 24 | * 25 | * @author Chris Povirk 26 | */ 27 | public class AllEqualOrdering_CustomFieldSerializer { 28 | public static void deserialize(SerializationStreamReader reader, AllEqualOrdering instance) {} 29 | 30 | public static AllEqualOrdering instantiate(SerializationStreamReader reader) { 31 | return AllEqualOrdering.INSTANCE; 32 | } 33 | 34 | public static void serialize(SerializationStreamWriter writer, AllEqualOrdering instance) {} 35 | } 36 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/ForwardingImmutableList_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 ForwardingImmutableList} cannot be instantiated, we still 21 | * need a custom field serializer. TODO(cpovirk): why? 22 | * 23 | * @author Hayward Chan 24 | */ 25 | public final class ForwardingImmutableList_CustomFieldSerializer {} 26 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/ForwardingImmutableSet_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 ForwardingImmutableSet} cannot be instantiated, we still 21 | * need a custom field serializer. TODO(cpovirk): why? 22 | * 23 | * @author Hayward Chan 24 | */ 25 | public final class ForwardingImmutableSet_CustomFieldSerializer {} 26 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/ImmutableAsList_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 ImmutableAsList} cannot be instantiated, we still need 21 | * a custom field serializer. TODO(cpovirk): why? 22 | * 23 | * @author Hayward Chan 24 | */ 25 | public final class ImmutableAsList_CustomFieldSerializer {} 26 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/ImmutableBiMap_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 ImmutableBiMap} cannot be instantiated, we still need 21 | * a custom field serializer to unify the type signature of 22 | * {@code ImmutableBiMap[]} on server and client side. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public final class ImmutableBiMap_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-gwt/src/com/google/common/collect/ImmutableMultiset_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 ImmutableMultiset} cannot be instantiated, we still need 21 | * a custom field serializer to unify the type signature of 22 | * {@code ImmutableMultiset[]} on server and client side. 23 | * 24 | * @author Chris Povirk 25 | */ 26 | public class ImmutableMultiset_CustomFieldSerializer {} 27 | -------------------------------------------------------------------------------- /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/ImmutableSortedSet_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 ImmutableSortedSet} cannot be instantiated, we still need 21 | * a custom field serializer to unify the type signature of 22 | * {@code ImmutableSortedSet[]} on server and client side. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public final class ImmutableSortedSet_CustomFieldSerializer {} 27 | -------------------------------------------------------------------------------- /guava-gwt/src/com/google/common/collect/NaturalOrdering_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 | import com.google.gwt.user.client.rpc.SerializationStreamReader; 20 | import com.google.gwt.user.client.rpc.SerializationStreamWriter; 21 | 22 | /** 23 | * This class implements the GWT serialization of {@link NaturalOrdering}. 24 | * 25 | * @author Chris Povirk 26 | */ 27 | public class NaturalOrdering_CustomFieldSerializer { 28 | 29 | public static void deserialize(SerializationStreamReader reader, NaturalOrdering instance) {} 30 | 31 | public static NaturalOrdering instantiate(SerializationStreamReader reader) { 32 | return NaturalOrdering.INSTANCE; 33 | } 34 | 35 | public static void serialize(SerializationStreamWriter writer, NaturalOrdering instance) {} 36 | } 37 | -------------------------------------------------------------------------------- /guava-gwt/test-super/com/google/common/math/super/com/google/common/math/TestPlatform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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.annotations.GwtCompatible; 20 | 21 | /** 22 | * @author Chris Povirk 23 | */ 24 | @GwtCompatible(emulated = true) 25 | class TestPlatform { 26 | static boolean intsCanGoOutOfRange() { 27 | return true; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/Platform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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.testing; 18 | 19 | import static com.google.common.base.Preconditions.checkNotNull; 20 | 21 | /** 22 | * Methods factored out so that they can be emulated differently in GWT. 23 | * 24 | * @author Chris Povirk 25 | */ 26 | final class Platform { 27 | /** 28 | * Serializes and deserializes the specified object (a no-op under GWT). 29 | */ 30 | @SuppressWarnings("unchecked") 31 | static T reserialize(T object) { 32 | return checkNotNull(object); 33 | } 34 | 35 | private Platform() {} 36 | } 37 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/GuavaTests.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/GuavaTestsEntryPoint.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 for our tests. 23 | * 24 | * @author Chris Povirk 25 | */ 26 | public class GuavaTestsEntryPoint implements EntryPoint { 27 | @Override public void onModuleLoad() { 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/base/CharsetsTest_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.base; 17 | public class CharsetsTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.base.testModule"; 20 | } 21 | public void testUtf8() throws Exception { 22 | com.google.common.base.CharsetsTest testCase = new com.google.common.base.CharsetsTest(); 23 | testCase.testUtf8(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/base/ObjectsTest_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.base; 17 | public class ObjectsTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.base.testModule"; 20 | } 21 | public void testEqual() throws Exception { 22 | com.google.common.base.ObjectsTest testCase = new com.google.common.base.ObjectsTest(); 23 | testCase.testEqual(); 24 | } 25 | 26 | public void testHashCode() throws Exception { 27 | com.google.common.base.ObjectsTest testCase = new com.google.common.base.ObjectsTest(); 28 | testCase.testHashCode(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/base/TestModuleEntryPoint.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.base; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/base/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/cache/TestModuleEntryPoint.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.cache; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/cache/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/MultimapBuilderTest_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.collect; 17 | public class MultimapBuilderTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testGenerics_gwtCompatible() throws Exception { 22 | com.google.common.collect.MultimapBuilderTest testCase = new com.google.common.collect.MultimapBuilderTest(); 23 | testCase.testGenerics_gwtCompatible(); 24 | } 25 | 26 | public void testTreeKeys_gwtCompatible() throws Exception { 27 | com.google.common.collect.MultimapBuilderTest testCase = new com.google.common.collect.MultimapBuilderTest(); 28 | testCase.testTreeKeys_gwtCompatible(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/RegularImmutableAsListTest_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.collect; 17 | public class RegularImmutableAsListTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testDoesntCheckForNull() throws Exception { 22 | com.google.common.collect.RegularImmutableAsListTest testCase = new com.google.common.collect.RegularImmutableAsListTest(); 23 | testCase.testDoesntCheckForNull(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/SimpleAbstractMultisetTest_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.collect; 17 | public class SimpleAbstractMultisetTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testFastAddAllMultiset() throws Exception { 22 | com.google.common.collect.SimpleAbstractMultisetTest testCase = new com.google.common.collect.SimpleAbstractMultisetTest(); 23 | testCase.testFastAddAllMultiset(); 24 | } 25 | 26 | public void testRemoveUnsupported() throws Exception { 27 | com.google.common.collect.SimpleAbstractMultisetTest testCase = new com.google.common.collect.SimpleAbstractMultisetTest(); 28 | testCase.testRemoveUnsupported(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/SortedIterablesTest_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.collect; 17 | public class SortedIterablesTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testComparator() throws Exception { 22 | com.google.common.collect.SortedIterablesTest testCase = new com.google.common.collect.SortedIterablesTest(); 23 | testCase.testComparator(); 24 | } 25 | 26 | public void testSameComparator() throws Exception { 27 | com.google.common.collect.SortedIterablesTest testCase = new com.google.common.collect.SortedIterablesTest(); 28 | testCase.testSameComparator(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/SortedListsTest_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.collect; 17 | public class SortedListsTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testWithDups() throws Exception { 22 | com.google.common.collect.SortedListsTest testCase = new com.google.common.collect.SortedListsTest(); 23 | testCase.testWithDups(); 24 | } 25 | 26 | public void testWithoutDups() throws Exception { 27 | com.google.common.collect.SortedListsTest testCase = new com.google.common.collect.SortedListsTest(); 28 | testCase.testWithoutDups(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/TestModuleEntryPoint.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.collect; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/UnmodifiableIteratorTest_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.collect; 17 | public class UnmodifiableIteratorTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.collect.testModule"; 20 | } 21 | public void testRemove() throws Exception { 22 | com.google.common.collect.UnmodifiableIteratorTest testCase = new com.google.common.collect.UnmodifiableIteratorTest(); 23 | testCase.testRemove(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/testing/TestModuleEntryPoint.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.collect.testing; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/collect/testing/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/escape/TestModuleEntryPoint.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.escape; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/escape/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/html/HtmlEscapersTest_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.html; 17 | public class HtmlEscapersTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.html.testModule"; 20 | } 21 | 22 | public void testHtmlEscaper() throws Exception { 23 | com.google.common.html.HtmlEscapersTest testCase = new com.google.common.html.HtmlEscapersTest(); 24 | testCase.testHtmlEscaper(); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/html/TestModuleEntryPoint.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.html; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/html/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/io/TestModuleEntryPoint.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.io; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/io/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/math/TestModuleEntryPoint.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.math; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/math/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/net/TestModuleEntryPoint.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.net; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/net/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/primitives/TestModuleEntryPoint.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.primitives; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/primitives/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/testing/TestModuleEntryPoint.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.testing; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/testing/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/util/concurrent/CallablesTest_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 CallablesTest_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 testReturning() throws Exception { 22 | com.google.common.util.concurrent.CallablesTest testCase = new com.google.common.util.concurrent.CallablesTest(); 23 | testCase.testReturning(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /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-gwt/test/com/google/common/util/concurrent/TestModuleEntryPoint.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 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/util/concurrent/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/xml/TestModuleEntryPoint.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.xml; 18 | 19 | import com.google.gwt.core.client.EntryPoint; 20 | 21 | /** 22 | * A dummy entry point of the test module. 23 | * 24 | * @author Hayward Chan 25 | */ 26 | public class TestModuleEntryPoint implements EntryPoint { 27 | 28 | @Override public void onModuleLoad() { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/xml/XmlEscapersTest_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.xml; 17 | public class XmlEscapersTest_gwt extends com.google.gwt.junit.client.GWTTestCase { 18 | @Override public String getModuleName() { 19 | return "com.google.common.xml.testModule"; 20 | } 21 | public void testXmlAttributeEscaper() throws Exception { 22 | com.google.common.xml.XmlEscapersTest testCase = new com.google.common.xml.XmlEscapersTest(); 23 | testCase.testXmlAttributeEscaper(); 24 | } 25 | 26 | public void testXmlContentEscaper() throws Exception { 27 | com.google.common.xml.XmlEscapersTest testCase = new com.google.common.xml.XmlEscapersTest(); 28 | testCase.testXmlContentEscaper(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-gwt/test/com/google/common/xml/testModule.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/AnEnum.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 | /** 22 | * A sample enumerated type we use for testing. 23 | * 24 | * @author Kevin Bourrillion 25 | */ 26 | @GwtCompatible 27 | public enum AnEnum { 28 | A, 29 | B, 30 | C, 31 | D, 32 | E, 33 | F 34 | } 35 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/DerivedComparable.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.collect.testing; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | 21 | /** 22 | * Simple derived class to verify that we handle generics correctly. 23 | * 24 | * @author Kevin Bourrillion 25 | */ 26 | @GwtCompatible 27 | public class DerivedComparable extends BaseComparable { 28 | public DerivedComparable(String s) { 29 | super(s); 30 | } 31 | 32 | private static final long serialVersionUID = 0; 33 | } 34 | -------------------------------------------------------------------------------- /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 | import java.util.Collection; 21 | 22 | /** 23 | * Creates collections, containing sample elements, to be tested. 24 | * 25 | * @author Kevin Bourrillion 26 | */ 27 | @GwtCompatible 28 | public interface TestCollectionGenerator extends TestContainerGenerator, E> {} 29 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/TestIteratorGenerator.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 | import java.util.Iterator; 21 | 22 | /** 23 | * Creates iterators to be tested. 24 | * 25 | * @param the element type of the iterator. 26 | * 27 | * @author George van den Driessche 28 | */ 29 | @GwtCompatible 30 | public interface TestIteratorGenerator { 31 | Iterator get(); 32 | } 33 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/TestListGenerator.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 | import java.util.List; 21 | 22 | /** 23 | * Creates sets, containing sample elements, to be tested. 24 | * 25 | * @author Kevin Bourrillion 26 | */ 27 | @GwtCompatible 28 | public interface TestListGenerator extends TestCollectionGenerator { 29 | @Override 30 | List create(Object... elements); 31 | } 32 | -------------------------------------------------------------------------------- /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 | import java.util.Map; 21 | 22 | /** 23 | * Creates maps, containing sample elements, to be tested. 24 | * 25 | * @author George van den Driessche 26 | */ 27 | @GwtCompatible 28 | public interface TestMapGenerator extends TestContainerGenerator, Map.Entry> { 29 | K[] createKeyArray(int length); 30 | 31 | V[] createValueArray(int length); 32 | } 33 | -------------------------------------------------------------------------------- /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 | import java.util.Queue; 21 | 22 | /** 23 | * Creates queues, containing sample elements, to be tested. 24 | * 25 | * @author Jared Levy 26 | */ 27 | @GwtCompatible 28 | public interface TestQueueGenerator extends TestCollectionGenerator { 29 | @Override 30 | Queue create(Object... elements); 31 | } 32 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/TestSetGenerator.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 | import java.util.Set; 21 | 22 | /** 23 | * Creates sets, containing sample elements, to be tested. 24 | * 25 | * @author Kevin Bourrillion 26 | */ 27 | @GwtCompatible 28 | public interface TestSetGenerator extends TestCollectionGenerator { 29 | @Override 30 | Set create(Object... elements); 31 | } 32 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/TestSubjectGenerator.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 | /** 22 | * To be implemented by test generators that can produce test subjects without 23 | * requiring any parameters. 24 | * 25 | * @param the type created by this generator. 26 | * 27 | * @author George van den Driessche 28 | */ 29 | @GwtCompatible 30 | public interface TestSubjectGenerator { 31 | T createTestSubject(); 32 | } 33 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/WrongType.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 | /** 22 | * A type which will never be used as the element type of any collection in our 23 | * tests, and so can be used to test how a Collection behaves when given input 24 | * of the wrong type. 25 | */ 26 | @GwtCompatible 27 | public enum WrongType { 28 | VALUE 29 | } 30 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/features/Feature.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.features; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import java.util.Set; 21 | 22 | /** 23 | * Base class for enumerating the features of an interface to be tested. 24 | * 25 | * @param The interface whose features are to be enumerated. 26 | * @author George van den Driessche 27 | */ 28 | @GwtCompatible 29 | public interface Feature { 30 | /** Returns the set of features that are implied by this feature. */ 31 | Set> getImpliedFeatures(); 32 | } 33 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.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.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.Multiset; 21 | import com.google.common.collect.testing.AbstractCollectionTester; 22 | 23 | /** 24 | * Base class for multiset collection tests. 25 | * 26 | * @author Jared Levy 27 | */ 28 | @GwtCompatible 29 | public class AbstractMultisetTester extends AbstractCollectionTester { 30 | protected final Multiset getMultiset() { 31 | return (Multiset) collection; 32 | } 33 | 34 | protected void initThreeCopies() { 35 | collection = getSubjectGenerator().create(e0(), e0(), e0()); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/GoogleHelpers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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.google; 18 | 19 | import static junit.framework.Assert.fail; 20 | 21 | import com.google.common.annotations.GwtCompatible; 22 | import com.google.common.collect.Multimap; 23 | 24 | /** 25 | * Helper methods/assertions for use with {@code com.google.common.collect} types. 26 | * 27 | * @author Colin Decker 28 | */ 29 | @GwtCompatible 30 | final class GoogleHelpers { 31 | 32 | private GoogleHelpers() {} 33 | 34 | static void assertEmpty(Multimap multimap) { 35 | if (!multimap.isEmpty()) { 36 | fail("Not true that " + multimap + " is empty"); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapGetTester.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.testing.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.SortedSetMultimap; 21 | 22 | /** 23 | * Tester for {@link SortedSetMultimap#get(Object)}. 24 | * 25 | * @author Louis Wasserman 26 | */ 27 | @GwtCompatible 28 | public class SortedSetMultimapGetTester 29 | extends AbstractMultimapTester> { 30 | public void testValueComparator() { 31 | assertEquals(multimap().valueComparator(), multimap().get(k0()).comparator()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/TestBiMapGenerator.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.testing.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.BiMap; 21 | import com.google.common.collect.testing.TestContainerGenerator; 22 | import java.util.Map; 23 | 24 | /** 25 | * Creates bimaps, containing sample entries, to be tested. 26 | * 27 | * @author Louis Wasserman 28 | */ 29 | @GwtCompatible 30 | public interface TestBiMapGenerator 31 | extends TestContainerGenerator, Map.Entry> { 32 | K[] createKeyArray(int length); 33 | 34 | V[] createValueArray(int length); 35 | } 36 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/TestListMultimapGenerator.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.testing.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.ListMultimap; 21 | 22 | /** 23 | * A generator for {@code ListMultimap} implementations based on test data. 24 | * 25 | * @author Louis Wasserman 26 | */ 27 | @GwtCompatible 28 | public interface TestListMultimapGenerator 29 | extends TestMultimapGenerator> {} 30 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/TestMultisetGenerator.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.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.Multiset; 21 | import com.google.common.collect.testing.TestCollectionGenerator; 22 | 23 | /** 24 | * Creates multisets, containing sample elements, to be tested. 25 | * 26 | * @author Jared Levy 27 | */ 28 | @GwtCompatible 29 | public interface TestMultisetGenerator extends TestCollectionGenerator { 30 | @Override 31 | Multiset create(Object... elements); 32 | } 33 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/google/TestSetMultimapGenerator.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.testing.google; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.SetMultimap; 21 | 22 | /** 23 | * A generator for {@code SetMultimap} implementations based on test data. 24 | * 25 | * @author Louis Wasserman 26 | */ 27 | @GwtCompatible 28 | public interface TestSetMultimapGenerator 29 | extends TestMultimapGenerator> {} 30 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/testers/AbstractQueueTester.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.testers; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.testing.AbstractCollectionTester; 21 | import java.util.Queue; 22 | 23 | /** 24 | * Base class for queue collection tests. 25 | * 26 | * @author Jared Levy 27 | */ 28 | @GwtCompatible 29 | public class AbstractQueueTester extends AbstractCollectionTester { 30 | protected final Queue getQueue() { 31 | return (Queue) collection; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/testers/AbstractSetTester.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.testers; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.testing.AbstractCollectionTester; 21 | import java.util.Set; 22 | 23 | /** 24 | * @author George van den Driessche 25 | */ 26 | @GwtCompatible 27 | public class AbstractSetTester extends AbstractCollectionTester { 28 | /* 29 | * Previously we had a field named set that was initialized to the value of 30 | * collection in setUp(), but that caused problems when a tester changed the 31 | * value of set or collection but not both. 32 | */ 33 | protected final Set getSet() { 34 | return (Set) collection; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/testers/CollectionSizeTester.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.testers; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.testing.AbstractCollectionTester; 21 | 22 | /** 23 | * A generic JUnit test which tests {@code size()} operations on a collection. 24 | * Can't be invoked directly; please see 25 | * {@link com.google.common.collect.testing.CollectionTestSuiteBuilder}. 26 | * 27 | * @author Kevin Bourrillion 28 | */ 29 | @GwtCompatible 30 | public class CollectionSizeTester extends AbstractCollectionTester { 31 | public void testSize() { 32 | assertEquals("size():", getNumElements(), collection.size()); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/collect/testing/testers/MapSizeTester.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.testers; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import com.google.common.collect.testing.AbstractMapTester; 21 | 22 | /** 23 | * A generic JUnit test which tests {@code size()} operations on a map. 24 | * Can't be invoked directly; please see 25 | * {@link com.google.common.collect.testing.MapTestSuiteBuilder}. 26 | * 27 | * @author George van den Driessche 28 | */ 29 | @GwtCompatible 30 | public class MapSizeTester extends AbstractMapTester { 31 | public void testSize() { 32 | assertEquals("size():", getNumElements(), getMap().size()); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/escape/testing/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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 | /** 18 | * Testing utilities for use in tests of {@code com.google.common.escape}. 19 | * 20 | *

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-testlib/src/com/google/common/testing/TearDownAccepter.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.testing; 18 | 19 | import com.google.common.annotations.Beta; 20 | import com.google.common.annotations.GwtCompatible; 21 | 22 | /** 23 | * Any object which can accept registrations of {@link TearDown} instances. 24 | * 25 | * @author Kevin Bourrillion 26 | * @since 10.0 27 | */ 28 | @Beta 29 | @GwtCompatible 30 | public interface TearDownAccepter { 31 | /** 32 | * Registers a TearDown implementor which will be run after the test proper. 33 | * 34 | *

In JUnit4 language, that means as an {@code @After}. 35 | * 36 | *

In JUnit3 language, that means during the 37 | * {@link junit.framework.TestCase#tearDown()} step. 38 | */ 39 | void addTearDown(TearDown tearDown); 40 | } 41 | -------------------------------------------------------------------------------- /guava-testlib/src/com/google/common/testing/package-info.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 | /** 18 | * This package contains testing utilities. 19 | * It is a part of the open-source 20 | * Guava library. 21 | */ 22 | @javax.annotation.ParametersAreNonnullByDefault 23 | package com.google.common.testing; 24 | -------------------------------------------------------------------------------- /guava-testlib/test/com/google/common/testing/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.testing; 18 | 19 | /** 20 | * Test nulls for the entire package. 21 | */ 22 | 23 | public class PackageSanityTests extends AbstractPackageSanityTests {} 24 | -------------------------------------------------------------------------------- /guava-testlib/test/com/google/common/testing/RelationshipTesterTest.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.testing; 18 | 19 | import com.google.common.testing.RelationshipTester.ItemReporter; 20 | import junit.framework.TestCase; 21 | 22 | /** 23 | * Tests for {@link RelationshipTester}. 24 | * 25 | * @author Ben Yu 26 | */ 27 | public class RelationshipTesterTest extends TestCase { 28 | 29 | public void testNulls() { 30 | new ClassSanityTester() 31 | .setDefault(ItemReporter.class, new ItemReporter()) 32 | .testNulls(RelationshipTester.class); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-testlib/test/com/google/common/testing/anotherpackage/SomeClassThatDoesNotUseNullable.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.testing.anotherpackage; 18 | 19 | /** Does not check null, but should not matter since it's in a different package. */ 20 | @SuppressWarnings("unused") // For use by NullPointerTester 21 | public class SomeClassThatDoesNotUseNullable { 22 | 23 | void packagePrivateButDoesNotCheckNull(String s) {} 24 | 25 | protected void protectedButDoesNotCheckNull(String s) {} 26 | 27 | public void publicButDoesNotCheckNull(String s) {} 28 | 29 | public static void staticButDoesNotCheckNull(String s) {} 30 | } 31 | -------------------------------------------------------------------------------- /guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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.eventbus; 18 | 19 | import com.google.caliper.BeforeExperiment; 20 | import com.google.caliper.Benchmark; 21 | 22 | /** 23 | * Benchmark for {@link EventBus}. 24 | * 25 | * @author Eric Fellheimer 26 | */ 27 | public class EventBusBenchmark { 28 | 29 | private EventBus eventBus; 30 | 31 | @BeforeExperiment 32 | void setUp() { 33 | eventBus = new EventBus("for benchmarking purposes"); 34 | eventBus.register(this); 35 | } 36 | 37 | @Benchmark void postStrings(int reps) { 38 | for (int i = 0; i < reps; i++) { 39 | eventBus.post("hello there"); 40 | } 41 | } 42 | 43 | @Subscribe 44 | public void handleStrings(String string) { 45 | // Nothing to do here. 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/base/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.base; 18 | 19 | import com.google.common.testing.AbstractPackageSanityTests; 20 | 21 | /** 22 | * Basic sanity tests for classes in {@code common.base}. 23 | */ 24 | 25 | public class PackageSanityTests extends AbstractPackageSanityTests { 26 | public PackageSanityTests() { 27 | // package private classes like FunctionalEquivalence are tested through the public API. 28 | publicApiOnly(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /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/cache/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.cache; 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 | setDefault(CacheLoader.class, new CacheLoader() { 30 | @Override public Object load(Object key) { 31 | return key; 32 | }}); 33 | setDefault(LocalCache.class, new LocalCache(CacheBuilder.newBuilder(), null)); 34 | setDefault(CacheBuilder.class, CacheBuilder.newBuilder()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/collect/DiscreteDomainTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 static com.google.common.testing.SerializableTester.reserializeAndAssert; 20 | 21 | import com.google.common.annotations.GwtIncompatible; 22 | import junit.framework.TestCase; 23 | 24 | /** 25 | * Tests for {@link DiscreteDomain}. 26 | * 27 | * @author Chris Povirk 28 | */ 29 | @GwtIncompatible // SerializableTester 30 | public class DiscreteDomainTest extends TestCase { 31 | public void testSerialization() { 32 | reserializeAndAssert(DiscreteDomain.integers()); 33 | reserializeAndAssert(DiscreteDomain.longs()); 34 | reserializeAndAssert(DiscreteDomain.bigIntegers()); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/collect/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.collect; 18 | 19 | import com.google.common.testing.AbstractPackageSanityTests; 20 | 21 | /** 22 | * Covers basic sanity checks for the entire package. 23 | * 24 | * @author Ben Yu 25 | */ 26 | 27 | public class PackageSanityTests extends AbstractPackageSanityTests { 28 | public PackageSanityTests() { 29 | publicApiOnly(); // Many package-private classes are tested through the public API. 30 | setDefault(DiscreteDomain.class, DiscreteDomain.integers()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/collect/RangeNonGwtTest.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 | import com.google.common.testing.NullPointerTester; 20 | import junit.framework.TestCase; 21 | 22 | /** 23 | * Test cases for {@link Range} which cannot run as GWT tests. 24 | * 25 | * @author Gregory Kick 26 | * @see RangeTest 27 | */ 28 | public class RangeNonGwtTest extends TestCase { 29 | 30 | public void testNullPointers() { 31 | NullPointerTester tester = new NullPointerTester(); 32 | 33 | tester.testAllPublicStaticMethods(Range.class); 34 | tester.testAllPublicStaticMethods(Range.class); 35 | 36 | tester.testAllPublicInstanceMethods(Range.all()); 37 | tester.testAllPublicInstanceMethods(Range.open(1, 3)); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/collect/RegularImmutableAsListTest.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 | 15 | package com.google.common.collect; 16 | 17 | import com.google.common.annotations.GwtCompatible; 18 | import junit.framework.TestCase; 19 | 20 | /** 21 | * Tests for {@link RegularImmutableAsList}. 22 | * 23 | * @author Louis Wasserman 24 | */ 25 | @GwtCompatible 26 | public class RegularImmutableAsListTest extends TestCase { 27 | /** 28 | * RegularImmutableAsList should assume its input is null-free without checking, because it only 29 | * gets invoked from other immutable collections. 30 | */ 31 | public void testDoesntCheckForNull() { 32 | ImmutableSet set = ImmutableSet.of(1, 2, 3); 33 | new RegularImmutableAsList(set, new Object[] {null, null, null}); 34 | // shouldn't throw! 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.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.escape; 18 | 19 | import junit.framework.TestCase; 20 | 21 | public class CharEscaperBuilderTest extends TestCase { 22 | 23 | public void testAddEscapes() { 24 | char[] cs = {'a', 'b', 'c'}; 25 | CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z"); 26 | Escaper escaper = builder.toEscaper(); 27 | assertEquals("ZZZdef", escaper.escape("abcdef")); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/escape/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.escape; 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 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/hash/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.hash; 18 | 19 | import com.google.common.hash.BloomFilterStrategies.BitArray; 20 | import com.google.common.testing.AbstractPackageSanityTests; 21 | 22 | /** 23 | * Basic sanity tests for the entire package. 24 | * 25 | * @author Ben Yu 26 | */ 27 | 28 | public class PackageSanityTests extends AbstractPackageSanityTests { 29 | public PackageSanityTests() { 30 | setDefault(BitArray.class, new BitArray(1)); 31 | setDefault(HashCode.class, HashCode.fromInt(1)); 32 | setDefault(String.class, "MD5"); 33 | setDefault(int.class, 32); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/io/RandomAmountInputStream.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.io; 18 | 19 | import static com.google.common.base.Preconditions.checkNotNull; 20 | 21 | import java.io.FilterInputStream; 22 | import java.io.IOException; 23 | import java.io.InputStream; 24 | import java.util.Random; 25 | 26 | /** Returns a random portion of the requested bytes on each call. */ 27 | class RandomAmountInputStream extends FilterInputStream { 28 | private final Random random; 29 | 30 | public RandomAmountInputStream(InputStream in, Random random) { 31 | super(checkNotNull(in)); 32 | this.random = checkNotNull(random); 33 | } 34 | 35 | @Override public int read(byte[] b, int off, int len) throws IOException { 36 | return super.read(b, off, random.nextInt(len) + 1); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/io/TestOption.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.io; 18 | 19 | /** 20 | * Options controlling the behavior of sources/sinks/streams for testing. 21 | * 22 | * @author Colin Decker 23 | */ 24 | public enum TestOption { 25 | OPEN_THROWS, 26 | SKIP_THROWS, 27 | READ_THROWS, 28 | WRITE_THROWS, 29 | CLOSE_THROWS, 30 | AVAILABLE_ALWAYS_ZERO 31 | } 32 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/io/TestStreamSupplier.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.io; 18 | 19 | /** 20 | * Interface for a supplier of streams that can report whether a stream was opened and whether that 21 | * stream was closed. Intended for use in a test where only a single stream should be opened and 22 | * possibly closed. 23 | * 24 | * @author Colin Decker 25 | */ 26 | public interface TestStreamSupplier { 27 | 28 | /** 29 | * Returns whether or not a new stream was opened. 30 | */ 31 | boolean wasStreamOpened(); 32 | 33 | /** 34 | * Returns whether or not an open stream was closed. 35 | */ 36 | boolean wasStreamClosed(); 37 | } 38 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/io/testdata/ascii.txt: -------------------------------------------------------------------------------- 1 | !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/io/testdata/i18n.txt: -------------------------------------------------------------------------------- 1 | Îñţérñåţîöñåļîžåţîöñ -------------------------------------------------------------------------------- /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-tests/test/com/google/common/math/TestPlatform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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.annotations.GwtCompatible; 20 | 21 | /** 22 | * @author Chris Povirk 23 | */ 24 | @GwtCompatible(emulated = true) 25 | class TestPlatform { 26 | static boolean intsCanGoOutOfRange() { 27 | return false; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/net/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.net; 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 | setDefault(InternetDomainName.class, InternetDomainName.from("google.com")); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/primitives/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.primitives; 18 | 19 | import com.google.common.testing.AbstractPackageSanityTests; 20 | 21 | /** 22 | * Tests basic sanity for each class in the package. 23 | * 24 | * @author Ben Yu 25 | */ 26 | 27 | public class PackageSanityTests extends AbstractPackageSanityTests { 28 | public PackageSanityTests() { 29 | setDefault(String.class, "string"); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/reflect/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.reflect; 18 | 19 | import com.google.common.testing.AbstractPackageSanityTests; 20 | 21 | /** 22 | * Tests nulls for the entire package. 23 | */ 24 | 25 | public class PackageSanityTests extends AbstractPackageSanityTests {} 26 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/reflect/subpackage/ClassInSubPackage.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.reflect.subpackage; 18 | 19 | public class ClassInSubPackage {} 20 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/reflect/test.txt: -------------------------------------------------------------------------------- 1 | This is a resource file for testing purpose. 2 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingBlockingDequeTest.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 | * Test for {@link ForwardingBlockingDeque} 23 | * 24 | * @author Emily Soldal 25 | */ 26 | public class ForwardingBlockingDequeTest extends TestCase { 27 | 28 | public void testForwarding() { 29 | ForwardingObjectTester.testForwardingObject(ForwardingBlockingDeque.class); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingBlockingQueueTest.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 ForwardingBlockingQueue} 23 | */ 24 | public class ForwardingBlockingQueueTest extends TestCase { 25 | public void testForwarding() { 26 | ForwardingObjectTester.testForwardingObject(ForwardingBlockingQueue.class); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingCheckedFutureTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 | * Test for {@link ForwardingCheckedFuture} 23 | * 24 | * @author Ben Yu 25 | */ 26 | public class ForwardingCheckedFutureTest extends TestCase { 27 | public void testForwarding() { 28 | ForwardingObjectTester.testForwardingObject(ForwardingCheckedFuture.class); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.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 ForwardingExecutorService} 23 | */ 24 | public class ForwardingExecutorServiceTest extends TestCase { 25 | public void testForwarding() { 26 | ForwardingObjectTester.testForwardingObject(ForwardingExecutorService.class); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /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/ForwardingListenableFutureTest.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.util.concurrent; 18 | 19 | import junit.framework.TestCase; 20 | 21 | /** 22 | * Tests for {@link ForwardingListenableFuture}. 23 | * 24 | * @author Ben Yu 25 | */ 26 | public class ForwardingListenableFutureTest extends TestCase { 27 | public void testForwarding() { 28 | ForwardingObjectTester.testForwardingObject(ForwardingListenableFuture.class); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/ForwardingListeningExecutorServiceTest.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 ForwardingListeningExecutorService} 23 | */ 24 | public class ForwardingListeningExecutorServiceTest extends TestCase { 25 | public void testForwarding() { 26 | ForwardingObjectTester.testForwardingObject(ForwardingListeningExecutorService.class); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /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/RunnablesTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 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 com.google.common.annotations.GwtCompatible; 20 | import junit.framework.TestCase; 21 | 22 | /** 23 | * Unit tests for {@link Runnables}. 24 | * 25 | * @author Olivier Pernet 26 | */ 27 | @GwtCompatible 28 | public class RunnablesTest extends TestCase { 29 | public void testDoNothingRunnableIsSingleton() { 30 | assertSame(Runnables.doNothing(), Runnables.doNothing()); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/TrustedInputFutureTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 com.google.common.annotations.GwtCompatible; 20 | import com.google.common.util.concurrent.AbstractFuture.TrustedFuture; 21 | 22 | /** 23 | * Tests for {@link AbstractFuture} that use a {@link TrustedFuture} for 24 | * {@link AbstractFuture#setFuture} calls. 25 | */ 26 | @GwtCompatible 27 | public class TrustedInputFutureTest extends AbstractAbstractFutureTest { 28 | @Override 29 | AbstractFuture newDelegate() { 30 | AbstractFuture future = new TrustedFuture() {}; 31 | assertTrue(future instanceof TrustedFuture); // sanity check 32 | return future; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.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 | import static org.mockito.Mockito.mock; 20 | import static org.mockito.Mockito.verify; 21 | 22 | import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter; 23 | import junit.framework.TestCase; 24 | 25 | /** 26 | * @author Gregory Kick 27 | */ 28 | 29 | public class UncaughtExceptionHandlersTest extends TestCase { 30 | 31 | private Runtime runtimeMock; 32 | 33 | @Override protected void setUp() { 34 | runtimeMock = mock(Runtime.class); 35 | } 36 | 37 | public void testExiter() { 38 | new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception()); 39 | verify(runtimeMock).exit(1); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /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-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 com.google.common.annotations.GwtCompatible; 20 | import com.google.common.util.concurrent.AbstractFuture.TrustedFuture; 21 | 22 | /** 23 | * Tests for {@link AbstractFuture} that use a non-{@link TrustedFuture} for 24 | * {@link AbstractFuture#setFuture} calls. 25 | */ 26 | @GwtCompatible 27 | public class UntrustedInputFutureTest extends AbstractAbstractFutureTest { 28 | @Override 29 | AbstractFuture newDelegate() { 30 | AbstractFuture future = new AbstractFuture() {}; 31 | assertFalse(future instanceof TrustedFuture); // sanity check 32 | return future; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /guava/src/com/google/common/annotations/VisibleForTesting.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006 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.annotations; 16 | 17 | /** 18 | * Annotates a program element that exists, or is more widely visible than otherwise necessary, only 19 | * for use in test code. 20 | * 21 | * @author Johannes Henkel 22 | */ 23 | @GwtCompatible 24 | public @interface VisibleForTesting { 25 | } 26 | -------------------------------------------------------------------------------- /guava/src/com/google/common/annotations/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 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 | * Common annotation types. This package is a part of the open-source 17 | * Guava library. 18 | */ 19 | package com.google.common.annotations; 20 | -------------------------------------------------------------------------------- /guava/src/com/google/common/base/CommonMatcher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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.base; 16 | 17 | import com.google.common.annotations.GwtCompatible; 18 | 19 | /** 20 | * The subset of the {@link java.util.regex.Matcher} API which is used by this package, and also 21 | * shared with the {@code re2j} library. For internal use only. Please refer to the {@code Matcher} 22 | * javadoc for details. 23 | */ 24 | @GwtCompatible 25 | abstract class CommonMatcher { 26 | abstract boolean matches(); 27 | 28 | abstract boolean find(); 29 | 30 | abstract boolean find(int index); 31 | 32 | abstract String replaceAll(String replacement); 33 | 34 | abstract int end(); 35 | 36 | abstract int start(); 37 | } 38 | -------------------------------------------------------------------------------- /guava/src/com/google/common/base/ExtraObjectsMethodsForWeb.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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.base; 16 | 17 | import com.google.common.annotations.GwtCompatible; 18 | 19 | /** 20 | * Holder for extra methods of {@code Objects} only in web. Intended to be empty for regular 21 | * version. 22 | */ 23 | @GwtCompatible(emulated = true) 24 | abstract class ExtraObjectsMethodsForWeb {} 25 | -------------------------------------------------------------------------------- /guava/src/com/google/common/base/FinalizableReference.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 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.base; 16 | 17 | import com.google.common.annotations.GwtIncompatible; 18 | 19 | /** 20 | * Implemented by references that have code to run after garbage collection of their referents. 21 | * 22 | * @see FinalizableReferenceQueue 23 | * @author Bob Lee 24 | * @since 2.0 25 | */ 26 | @GwtIncompatible 27 | public interface FinalizableReference { 28 | /** 29 | * Invoked on a background thread after the referent has been garbage collected unless security 30 | * restrictions prevented starting a background thread, in which case this method is invoked when 31 | * new references are created. 32 | */ 33 | void finalizeReferent(); 34 | } 35 | -------------------------------------------------------------------------------- /guava/src/com/google/common/base/PatternCompiler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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.base; 16 | 17 | import com.google.common.annotations.GwtIncompatible; 18 | 19 | /** 20 | * Pluggable interface for compiling a regex pattern. By default this package uses the 21 | * {@code java.util.regex} library, but an alternate implementation can be supplied 22 | * using the {@link java.util.ServiceLoader} mechanism. 23 | */ 24 | @GwtIncompatible 25 | interface PatternCompiler { 26 | /** 27 | * Compiles the given pattern. 28 | * 29 | * @throws IllegalArgumentException if the pattern is invalid 30 | */ 31 | CommonPattern compile(String pattern); 32 | } 33 | -------------------------------------------------------------------------------- /guava/src/com/google/common/cache/LongAddable.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 | package com.google.common.cache; 16 | 17 | import com.google.common.annotations.GwtCompatible; 18 | 19 | /** 20 | * Abstract interface for objects that can concurrently add longs. 21 | * 22 | * @author Louis Wasserman 23 | */ 24 | @GwtCompatible 25 | interface LongAddable { 26 | void increment(); 27 | 28 | void add(long x); 29 | 30 | long sum(); 31 | } 32 | -------------------------------------------------------------------------------- /guava/src/com/google/common/cache/Weigher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 | import com.google.common.annotations.GwtCompatible; 18 | 19 | /** 20 | * Calculates the weights of cache entries. 21 | * 22 | * @author Charles Fry 23 | * @since 11.0 24 | */ 25 | @GwtCompatible 26 | @FunctionalInterface 27 | public interface Weigher { 28 | 29 | /** 30 | * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply 31 | * relative to each other. 32 | * 33 | * @return the weight of the entry; must be non-negative 34 | */ 35 | int weigh(K key, V value); 36 | } 37 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/ComputationException.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 | import com.google.common.annotations.GwtCompatible; 20 | import javax.annotation.Nullable; 21 | 22 | /** 23 | * Wraps an exception that occurred during a computation. 24 | * 25 | * @author Bob Lee 26 | * @since 2.0 27 | */ 28 | @GwtCompatible 29 | public class ComputationException extends RuntimeException { 30 | /** 31 | * Creates a new instance with the given cause. 32 | */ 33 | public ComputationException(@Nullable Throwable cause) { 34 | super(cause); 35 | } 36 | 37 | private static final long serialVersionUID = 0; 38 | } 39 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/EmptyImmutableListMultimap.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; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | 21 | /** 22 | * Implementation of {@link ImmutableListMultimap} with no entries. 23 | * 24 | * @author Jared Levy 25 | */ 26 | @GwtCompatible(serializable = true) 27 | class EmptyImmutableListMultimap extends ImmutableListMultimap { 28 | static final EmptyImmutableListMultimap INSTANCE = new EmptyImmutableListMultimap(); 29 | 30 | private EmptyImmutableListMultimap() { 31 | super(ImmutableMap.>of(), 0); 32 | } 33 | 34 | private Object readResolve() { 35 | return INSTANCE; // preserve singleton property 36 | } 37 | 38 | private static final long serialVersionUID = 0; 39 | } 40 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/EmptyImmutableSetMultimap.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 | import com.google.common.annotations.GwtCompatible; 20 | 21 | /** 22 | * Implementation of {@link ImmutableListMultimap} with no entries. 23 | * 24 | * @author Mike Ward 25 | */ 26 | @GwtCompatible(serializable = true) 27 | class EmptyImmutableSetMultimap extends ImmutableSetMultimap { 28 | static final EmptyImmutableSetMultimap INSTANCE = new EmptyImmutableSetMultimap(); 29 | 30 | private EmptyImmutableSetMultimap() { 31 | super(ImmutableMap.>of(), 0, null); 32 | } 33 | 34 | private Object readResolve() { 35 | return INSTANCE; // preserve singleton property 36 | } 37 | 38 | private static final long serialVersionUID = 0; 39 | } 40 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/FilteredMultimap.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 | import com.google.common.base.Predicate; 21 | import java.util.Map.Entry; 22 | 23 | /** 24 | * An interface for all filtered multimap types. 25 | * 26 | * @author Louis Wasserman 27 | */ 28 | @GwtCompatible 29 | interface FilteredMultimap extends Multimap { 30 | Multimap unfiltered(); 31 | 32 | Predicate> entryPredicate(); 33 | } 34 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/FilteredSetMultimap.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 | * A supertype for filtered {@link SetMultimap} implementations. 23 | * 24 | * @author Louis Wasserman 25 | */ 26 | @GwtCompatible 27 | interface FilteredSetMultimap extends FilteredMultimap, SetMultimap { 28 | @Override 29 | SetMultimap unfiltered(); 30 | } 31 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/ForwardingImmutableCollection.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.collect; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | 21 | /** 22 | * Dummy class that makes the GWT serialization policy happy. It isn't used 23 | * on the server-side. 24 | * 25 | * @author Hayward Chan 26 | */ 27 | @GwtCompatible(emulated = true) 28 | class ForwardingImmutableCollection { 29 | private ForwardingImmutableCollection() {} 30 | } 31 | -------------------------------------------------------------------------------- /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 { 28 | private ForwardingImmutableList() {} 29 | } 30 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/ForwardingImmutableMap.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 ForwardingImmutableMap { 28 | private ForwardingImmutableMap() {} 29 | } 30 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/ForwardingImmutableSet.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 ForwardingImmutableSet { 28 | private ForwardingImmutableSet() {} 29 | } 30 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/GwtTransient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 static java.lang.annotation.ElementType.FIELD; 20 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 21 | 22 | import com.google.common.annotations.GwtCompatible; 23 | import java.lang.annotation.Documented; 24 | import java.lang.annotation.Retention; 25 | import java.lang.annotation.Target; 26 | 27 | /** 28 | * Private replacement for {@link com.google.gwt.user.client.rpc.GwtTransient} 29 | * to work around build-system quirks. This annotation should be used 30 | * only in {@code com.google.common.collect}. 31 | */ 32 | @Documented 33 | @GwtCompatible 34 | @Retention(RUNTIME) 35 | @Target(FIELD) 36 | @interface GwtTransient {} 37 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/RangeGwtSerializationDependencies.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 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 | import java.io.Serializable; 21 | 22 | /** 23 | * A dummy superclass to support GWT serialization of the element type of a {@link Range}. The GWT 24 | * supersource for this class contains a field of type {@code C}. 25 | * 26 | *

For details about this hack, see {@link GwtSerializationDependencies}, which takes the same 27 | * approach but with a subclass rather than a superclass. 28 | * 29 | *

TODO(cpovirk): Consider applying this subclass approach to our other types. 30 | */ 31 | @GwtCompatible(emulated = true) 32 | abstract class RangeGwtSerializationDependencies implements Serializable {} 33 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/SortedMapDifference.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.collect; 18 | 19 | import com.google.common.annotations.GwtCompatible; 20 | import java.util.SortedMap; 21 | 22 | /** 23 | * An object representing the differences between two sorted maps. 24 | * 25 | * @author Louis Wasserman 26 | * @since 8.0 27 | */ 28 | @GwtCompatible 29 | public interface SortedMapDifference extends MapDifference { 30 | 31 | @Override 32 | SortedMap entriesOnlyOnLeft(); 33 | 34 | @Override 35 | SortedMap entriesOnlyOnRight(); 36 | 37 | @Override 38 | SortedMap entriesInCommon(); 39 | 40 | @Override 41 | SortedMap> entriesDiffering(); 42 | } 43 | -------------------------------------------------------------------------------- /guava/src/com/google/common/collect/SortedMultisetBridge.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.GwtIncompatible; 20 | import java.util.SortedSet; 21 | 22 | /** 23 | * Superinterface of {@link SortedMultiset} to introduce a bridge method for 24 | * {@code elementSet()}, to ensure binary compatibility with older Guava versions 25 | * that specified {@code elementSet()} to return {@code SortedSet}. 26 | * 27 | * @author Louis Wasserman 28 | */ 29 | @GwtIncompatible 30 | interface SortedMultisetBridge extends Multiset { 31 | @Override 32 | SortedSet elementSet(); 33 | } 34 | -------------------------------------------------------------------------------- /guava/src/com/google/common/eventbus/AllowConcurrentEvents.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2007 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.eventbus; 16 | 17 | import com.google.common.annotations.Beta; 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | /** 24 | * Marks an event subscriber method as being thread-safe. This annotation indicates that EventBus 25 | * may invoke the event subscriber simultaneously from multiple threads. 26 | * 27 | *

This does not mark the method, and so should be used in combination with {@link Subscribe}. 28 | * 29 | * @author Cliff Biffle 30 | * @since 10.0 31 | */ 32 | @Retention(RetentionPolicy.RUNTIME) 33 | @Target(ElementType.METHOD) 34 | @Beta 35 | public @interface AllowConcurrentEvents {} 36 | -------------------------------------------------------------------------------- /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/src/com/google/common/graph/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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 | /** 18 | * An API for representing graph (node and edge) data. It is analogous to the Java Collections 19 | * Framework APIs for lists, maps, sets, etc. 20 | * 21 | *

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 | -------------------------------------------------------------------------------- /guava/src/com/google/common/hash/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 | // TODO(user): when things stabilize, flesh this out 16 | /** 17 | * Hash functions and related structures. 18 | * 19 | *

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/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/src/com/google/common/io/FileWriteMode.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 | package com.google.common.io; 16 | 17 | import com.google.common.annotations.GwtIncompatible; 18 | 19 | /** 20 | * Modes for opening a file for writing. The default when mode when none is specified is to truncate 21 | * the file before writing. 22 | * 23 | * @author Colin Decker 24 | */ 25 | @GwtIncompatible 26 | public enum FileWriteMode { 27 | /** Specifies that writes to the opened file should append to the end of the file. */ 28 | APPEND 29 | } 30 | -------------------------------------------------------------------------------- /guava/src/com/google/common/math/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2011 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 | * Arithmetic functions operating on primitive values and {@link java.math.BigInteger} instances. 17 | * 18 | *

This package is a part of the open-source Guava 19 | * library. 20 | * 21 | *

See the Guava User Guide article on 22 | * math utilities. 23 | */ 24 | @ParametersAreNonnullByDefault 25 | @CheckReturnValue 26 | package com.google.common.math; 27 | 28 | import javax.annotation.CheckReturnValue; 29 | import javax.annotation.ParametersAreNonnullByDefault; 30 | -------------------------------------------------------------------------------- /guava/src/com/google/common/net/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2010 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 utility methods and classes for working with net addresses (numeric IP and 17 | * domain names). 18 | * 19 | *

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/src/com/google/common/reflect/TypeCapture.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 | package com.google.common.reflect; 16 | 17 | import static com.google.common.base.Preconditions.checkArgument; 18 | 19 | import java.lang.reflect.ParameterizedType; 20 | import java.lang.reflect.Type; 21 | 22 | /** 23 | * Captures the actual type of {@code T}. 24 | * 25 | * @author Ben Yu 26 | */ 27 | abstract class TypeCapture { 28 | 29 | /** Returns the captured type. */ 30 | final Type capture() { 31 | Type superclass = getClass().getGenericSuperclass(); 32 | checkArgument(superclass instanceof ParameterizedType, "%s isn't parameterized", superclass); 33 | return ((ParameterizedType) superclass).getActualTypeArguments()[0]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /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/src/com/google/common/util/concurrent/ListenableScheduledFuture.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 | package com.google.common.util.concurrent; 16 | 17 | import com.google.common.annotations.Beta; 18 | import com.google.common.annotations.GwtIncompatible; 19 | import java.util.concurrent.ScheduledFuture; 20 | 21 | /** 22 | * Helper interface to implement both {@link ListenableFuture} and {@link ScheduledFuture}. 23 | * 24 | * @author Anthony Zana 25 | * 26 | * @since 15.0 27 | */ 28 | @Beta 29 | @GwtIncompatible 30 | public interface ListenableScheduledFuture extends ScheduledFuture, ListenableFuture {} 31 | -------------------------------------------------------------------------------- /guava/src/com/google/common/util/concurrent/Platform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2015 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.util.concurrent; 16 | 17 | import com.google.common.annotations.GwtCompatible; 18 | import javax.annotation.Nullable; 19 | 20 | /** 21 | * Methods factored out so that they can be emulated differently in GWT. 22 | */ 23 | @GwtCompatible(emulated = true) 24 | final class Platform { 25 | static boolean isInstanceOfThrowableClass( 26 | @Nullable Throwable t, Class expectedClass) { 27 | return expectedClass.isInstance(t); 28 | } 29 | 30 | private Platform() {} 31 | } 32 | -------------------------------------------------------------------------------- /guava/src/com/google/common/util/concurrent/Runnables.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 | 15 | package com.google.common.util.concurrent; 16 | 17 | import com.google.common.annotations.Beta; 18 | import com.google.common.annotations.GwtCompatible; 19 | 20 | /** 21 | * Static utility methods pertaining to the {@link Runnable} interface. 22 | * 23 | * @since 16.0 24 | */ 25 | @Beta 26 | @GwtCompatible 27 | public final class Runnables { 28 | 29 | private static final Runnable EMPTY_RUNNABLE = 30 | new Runnable() { 31 | @Override 32 | public void run() {} 33 | }; 34 | 35 | /** 36 | * Returns a {@link Runnable} instance that does nothing when run. 37 | */ 38 | public static Runnable doNothing() { 39 | return EMPTY_RUNNABLE; 40 | } 41 | 42 | private Runnables() {} 43 | } 44 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /mr/checkout.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | find . -name pom.xml -type f -delete 4 | git checkout -- 5 | find . -name "pom-template.xml" | python mr/writepom.py 6 | -------------------------------------------------------------------------------- /mr/writepom.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import os.path 3 | for pom_template in sys.stdin: 4 | pom_template = pom_template.strip() 5 | dirname = os.path.dirname(pom_template) 6 | with open(pom_template) as f: 7 | if os.path.exists(dirname + '/pom.xml'): 8 | os.chmod(dirname + '/pom.xml', 0o755) 9 | with open(dirname + '/pom.xml', 'w') as the_pom: 10 | lines = f.readlines() 11 | for line in lines: 12 | if line.strip().startswith("") and line.strip().endswith(""): 13 | sub_project = line.strip()[8:] 14 | sub_project = sub_project[:sub_project.index("<")] 15 | f_path = dirname + "/" + sub_project 16 | if os.path.exists(f_path + '/pom.xml') or os.path.exists(f_path + '/pom-template.xml'): 17 | the_pom.write(line) 18 | else: 19 | the_pom.write(line) 20 | os.chmod(dirname + '/pom.xml', 0o444) 21 | -------------------------------------------------------------------------------- /util/deploy_snapshot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # see https://coderwall.com/p/9b_lfq 4 | 5 | set -e -u 6 | 7 | if [ "$TRAVIS_REPO_SLUG" == "google/guava" ] && \ 8 | [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \ 9 | [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ 10 | [ "$TRAVIS_BRANCH" == "master" ]; then 11 | echo "Publishing Maven snapshot..." 12 | 13 | mvn clean source:jar javadoc:jar deploy --settings="util/settings.xml" -DskipTests=true 14 | 15 | echo "Maven snapshot published." 16 | fi 17 | -------------------------------------------------------------------------------- /util/settings.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | sonatype-nexus-snapshots 7 | ${env.CI_DEPLOY_USERNAME} 8 | ${env.CI_DEPLOY_PASSWORD} 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /util/update_snapshot_docs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # see http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/ for details 4 | 5 | set -e -u 6 | 7 | if [ "$TRAVIS_REPO_SLUG" == "google/guava" ] && \ 8 | [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \ 9 | [ "$TRAVIS_PULL_REQUEST" == "false" ] && \ 10 | [ "$TRAVIS_BRANCH" == "master" ]; then 11 | echo "Publishing Javadoc and JDiff..." 12 | 13 | cd $HOME 14 | git clone -q -b gh-pages https://${GH_TOKEN}@github.com/google/guava gh-pages > /dev/null 15 | cd gh-pages 16 | 17 | git config --global user.email "travis@travis-ci.org" 18 | git config --global user.name "travis-ci" 19 | 20 | ./updaterelease.sh snapshot 21 | 22 | git push -fq origin gh-pages > /dev/null 23 | 24 | echo "Javadoc and JDiff published to gh-pages." 25 | fi 26 | --------------------------------------------------------------------------------