* @exception TranslationBundleLoadingException see {@link TranslationBundle#load(Locale)}
* @exception TranslationStringMissingException see {@link TranslationBundle#load(Locale)}
*/
+ @SuppressWarnings("unchecked")
static synchronized <T extends TranslationBundle> T lookupBundle(Locale locale, Class<T> type) {
try {
Map<Class, TranslationBundle> bundles = cachedBundles.get(locale);
* @param h
* total height (in pixels) of this cell.
*/
+ @SuppressWarnings("unchecked")
protected void paintCommit(final PlotCommit<TLane> commit, final int h) {
final int dotSize = computeDotSize(h);
final TLane myLane = commit.getLane();
LINE_WIDTH);
for (int i = 0; i < commit.mergingLanes.length; i++) {
- @SuppressWarnings("unchecked")
final TLane pLane = (TLane) commit.mergingLanes[i];
final TColor pColor = laneColor(pLane);
final int cx = laneC(pLane);
if (commit.getChildCount() > 0) {
for (int i = 0; i < commit.forkingOffLanes.length; i++) {
- @SuppressWarnings("unchecked")
final TLane childLane = (TLane) commit.forkingOffLanes[i];
final TColor cColor = laneColor(childLane);
final int cx = laneC(childLane);
*
* @return the assigned lane for this commit.
*/
+ @SuppressWarnings("unchecked")
public final L getLane() {
return (L) lane;
}
* @param result
* collection to add the passing lanes into.
*/
+ @SuppressWarnings("unchecked")
public void findPassingThrough(final PlotCommit<L> currCommit,
final Collection<L> result) {
for (final PlotLane p : currCommit.passingLanes)
}
}
+ @SuppressWarnings("unchecked")
private void closeLane(PlotLane lane) {
if (activeLanes.remove(lane)) {
recycleLane((L) lane);
/**
* @return a new Lane appropriate for this particular PlotList.
*/
+ @SuppressWarnings("unchecked")
protected L createLane() {
return (L) new PlotLane();
}
* @throws MissingObjectException
* see {@link RevWalk#next()}
*/
+ @SuppressWarnings("unchecked")
public void fillTo(final int highMark) throws MissingObjectException,
IncorrectObjectTypeException, IOException {
if (walker == null || size > highMark)
* @throws MissingObjectException
* see {@link RevWalk#next()}
*/
+ @SuppressWarnings("unchecked")
public void fillTo(final RevCommit commitToLoad, int highMark)
throws MissingObjectException, IncorrectObjectTypeException,
IOException {
size++;
}
+ @SuppressWarnings("unchecked")
public E set(int index, E element) {
Block s = contents;
while (index >> s.shift >= BLOCK_SIZE) {
return (E) old;
}
+ @SuppressWarnings("unchecked")
public E get(int index) {
Block s = contents;
if (index >> s.shift >= 1024)
* address to listen for connections on. If null, any available
* port will be chosen on all network interfaces.
*/
+ @SuppressWarnings("unchecked")
public Daemon(final InetSocketAddress addr) {
myAddress = addr;
processors = new ThreadGroup("Git-Daemon"); //$NON-NLS-1$