Permalink
Browse files

Automatically handling line endings

  • Loading branch information...
1 parent 286a214 commit 9b14a3509b81e6cb3ee98ca790a7a526e0f85646 @gunnarmorling gunnarmorling committed May 13, 2013
Showing with 46 additions and 31 deletions.
  1. +15 −0 .gitattributes
  2. +31 −31 processor/src/main/java/org/mapstruct/ap/model/Options.java
View
@@ -0,0 +1,15 @@
+# Repository specific GIT options
+
+# Set default handling of line endings
+* text=auto
+
+# Explicitly declare text files we want to always be normalized and converted
+# to native line endings on checkout.
+*.java text
+*.xml text
+*.txt text
+*.md text
+
+# Java-friendly readable chunk headers
+
+*.java diff=java
@@ -1,31 +1,31 @@
-/**
- * Copyright 2012-2013 Gunnar Morling (http://www.gunnarmorling.de/)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.mapstruct.ap.model;
-
-public class Options
-{
- private final boolean suppressGeneratorTimestamp;
-
- public Options( boolean suppressGeneratorTimestamp )
- {
- this.suppressGeneratorTimestamp = suppressGeneratorTimestamp;
- }
-
- public boolean isSuppressGeneratorTimestamp()
- {
- return suppressGeneratorTimestamp;
- }
-}
+/**
+ * Copyright 2012-2013 Gunnar Morling (http://www.gunnarmorling.de/)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.mapstruct.ap.model;
+
+public class Options
+{
+ private final boolean suppressGeneratorTimestamp;
+
+ public Options( boolean suppressGeneratorTimestamp )
+ {
+ this.suppressGeneratorTimestamp = suppressGeneratorTimestamp;
+ }
+
+ public boolean isSuppressGeneratorTimestamp()
+ {
+ return suppressGeneratorTimestamp;
+ }
+}

0 comments on commit 9b14a35

Please sign in to comment.