Automatically handling line endings

This commit is contained in:
Gunnar Morling 2013-05-13 22:36:11 +02:00
parent 286a214fcd
commit 9b14a3509b
2 changed files with 46 additions and 31 deletions

15
.gitattributes vendored Normal file
View File

@ -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

View File

@ -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;
}
}