Browse Source

Add API filter for usage of FileRepository in test classes

FileRepository is in the package org.eclipse.jgit.internal, and is
thus non-API. This causes warnings in Eclipse when FileRepository is
used.

Add a filter to prevent the warnings.

Change-Id: I9a8ae106c085bb0e826031fa183b4c4bdabcc5fc
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-4.7
David Pursehouse 8 years ago committed by Matthias Sohn
parent
commit
a46bc16a9f
  1. 35
      org.eclipse.jgit.junit/.settings/.api_filters

35
org.eclipse.jgit.junit/.settings/.api_filters

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.jgit.junit" version="2">
<resource path="src/org/eclipse/jgit/junit/LocalDiskRepositoryTestCase.java" type="org.eclipse.jgit.junit.LocalDiskRepositoryTestCase">
<filter comment="OK to use internal implementation in tests" id="643842064">
<message_arguments>
<message_argument value="FileRepository"/>
<message_argument value="LocalDiskRepositoryTestCase"/>
<message_argument value="createBareRepository()"/>
</message_arguments>
</filter>
<filter comment="OK to use internal implementation in tests" id="643842064">
<message_arguments>
<message_argument value="FileRepository"/>
<message_argument value="LocalDiskRepositoryTestCase"/>
<message_argument value="createRepository(boolean, boolean)"/>
</message_arguments>
</filter>
<filter comment="OK to use internal implementation in tests" id="643842064">
<message_arguments>
<message_argument value="FileRepository"/>
<message_argument value="LocalDiskRepositoryTestCase"/>
<message_argument value="createWorkRepository()"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/junit/RepositoryTestCase.java" type="org.eclipse.jgit.junit.RepositoryTestCase">
<filter comment="OK to use internal implementation in tests" id="627060751">
<message_arguments>
<message_argument value="FileRepository"/>
<message_argument value="RepositoryTestCase"/>
<message_argument value="db"/>
</message_arguments>
</filter>
</resource>
</component>
Loading…
Cancel
Save