• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / generator / 2026

08 Feb 2026 06:44PM UTC coverage: 89.941% (-0.02%) from 89.961%
2026

Pull #1443

github

web-flow
Merge 6b288d3fa into 4e917b771
Pull Request #1443: Remove the Eclipse based Java file merger in favor of the merger in the core library

2295 of 3073 branches covered (74.68%)

66 of 96 new or added lines in 8 files covered. (68.75%)

4 existing lines in 3 files now uncovered.

11641 of 12943 relevant lines covered (89.94%)

0.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/mybatis-generator-core/src/main/java/org/mybatis/generator/api/GenericGeneratedFile.java
1
/*
2
 *    Copyright 2006-2026 the original author or authors.
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.mybatis.generator.api;
17

18
import java.util.Optional;
19

20
/**
21
 * Abstract class that holds information common to all generated files.
22
 *
23
 * @author Jeff Butler
24
 */
25
public abstract class GenericGeneratedFile extends GeneratedFile {
26

27
    protected GenericGeneratedFile(String targetProject) {
28
        super(targetProject);
×
29
    }
×
30

31
    @Override
32
    public boolean isMergeable() {
NEW
33
        return false;
×
34
    }
35

36
    /**
37
     * Returns the entire contents of the generated file. MyBatis Generator will simply save this content as-is.
38
     *
39
     * @return Returns the content.
40
     */
41
    public abstract String getFormattedContent();
42

43
    public abstract Optional<String> getFileEncoding();
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc