Skip to content

Instantly share code, notes, and snippets.

View develar's full-sized avatar

Vladimir Krivosheev develar

  • JetBrains
  • Kronach, Bavaria
View GitHub Profile
// Copyright 2000-2021 Jim Apple. Use of this source code is governed by the Apache 2.0 license that can be found in https://github.com/jbapple/libfilter/blob/master/LICENSE.txt.
package com.intellij.util.lang;
import java.nio.ByteBuffer;
/**
* BlockFilter is a block Bloom filter (from Putze et al.'s "Cache-, Hash- and
* Space-Efficient Bloom Filters") with some twists:
* <ol>
* <li> Each block is a split Bloom filter - see Section 2.1 of Broder and Mitzenmacher's
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
@develar
develar / plugins.md
Created November 13, 2020 11:24
plugins.md

InternalIgnoreDependencyViolation

Annotation InternalIgnoreDependencyViolation allows class to be used among various plugins. By default, classloader of extension class must be equal to classloader of plugin where extension is defined. It means that class of extension must be located in a module where corresponding plugin descriptor is located.

Generally, IJ Platform prohibits referencing extension class belonging to plugin1 from the plugin.xml in plugin2. However, sometimes this kind of dependency violation is necessary, in which case the corresponding extension must be annotated with this annotation.

For example:

// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.devkit.builder;
import com.google.protobuf.CodedOutputStream;
import com.intellij.compiler.instrumentation.InstrumentationClassFinder;
import com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoAnnotation;
import com.intellij.compiler.instrumentation.InstrumentationClassFinder.PseudoClass;
import com.intellij.components.IJPAnnotationIndexModel;
import com.intellij.components.IJPAnnotationIndexModel.ServiceDescriptor;
import com.intellij.openapi.diagnostic.Logger;
  • If CI server detected, — onTagOrDraft.

hello!!

_FirstInSuiteTest||com.intellij.openapi.application.impl.ApplicationImplTest||com.intellij.updater.ZipAwareNoBackupPatchApplyingRevertingTest||org.editorconfig.language.codeinsight.EditorConfigCompletionTest||com.intellij.openapi.extensions.impl.ExtensionComponentAdapterTest||com.intellij.openapi.extensions.impl.ExtensionPointImplTest||com.intellij.openapi.extensions.impl.LoadingOrderTest||com.intellij.openapi.extensions.impl.ExtensionsAreaTest||com.intellij.openapi.extensions.impl.ExtensionsImplTest||com.intellij.psi.codeStyle.arrangement.ArrangementSettingsSerializationTest||com.intellij.testFramework.TestClassesFilterTest||com.intellij.testFramework.ExpectedHighlightingDataFunctionalTest||org.intellij.lang.regexp.inspection.DuplicateAlternationBranchInspectionTest||com.intellij.configurationStore.ModuleStoreTest||com.intellij.configurationStore.xml.XmlSerializerWithDefaultJDOMExternalizerCompatibilityTest||com.intellij.configurationStore.xml.XmlSerializerOldMapAnnotationTest||com.intellij.configurationStor
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://jetbrains.com/intellij-configuration.schema.json",
"title": "IntelliJ Configuration",
"description": "IntelliJ Configuration File to configure IDE behavior, run configurations and so on",
"type": "object",
"definitions": {
"compoundRC": {
"additionalProperties": true
},
@develar
develar / runConfigurations.yaml
Created August 24, 2018 09:26
Template RC configuration
runConfigurations:
templates:
junit:
allowRunningInParallel: true
@develar
develar / logspout-several-file-name-filters.patch
Created July 11, 2018 09:53
logspout-several-file-name-filters
Index: httpstream/httpstream.go
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- httpstream/httpstream.go (date 1531296303000)
+++ httpstream/httpstream.go (date 1531295667000)
@@ -38,7 +38,7 @@
route.FilterID = route.FilterID[:12]
}
Please consider to use annotation parameters only to achieve backward compatibility. Otherwise feel free to file issues about serialization cosmetics.
## Lists and Sets
`XCollection` annotation intended to customize lists and sets serialization.
Two styles are provided:
* `v1`:
```xml