Adapt to stricter Eclipse error checking
[egit.git] / org.spearce.jgit / src / org / spearce / jgit / lib / ForceModified.java
blob753a32c8c3924387a31750f0e9438c83f05f21b3
1 /*
2 * Copyright (C) 2006 Shawn Pearce <spearce@spearce.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License, version 2.1, as published by the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17 package org.spearce.jgit.lib;
19 import java.io.IOException;
21 public class ForceModified implements TreeVisitor {
22 public void startVisitTree(final Tree t) throws IOException {
23 t.setModified();
26 public void endVisitTree(final Tree t) throws IOException {
29 public void visitFile(final FileTreeEntry f) throws IOException {
30 f.setModified();
33 public void visitSymlink(final SymlinkTreeEntry s) throws IOException {
34 // TODO: handle symlinks. Only problem is that JGit is indepent of Eclipse
35 // and Pure Java does not know what to do about symbolic links.